PINE64
Help to install vim (and others) in NixOS - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineCube (https://forum.pine64.org/forumdisplay.php?fid=149)
+--- Forum: Development Discussion on PineCube (https://forum.pine64.org/forumdisplay.php?fid=151)
+--- Thread: Help to install vim (and others) in NixOS (/showthread.php?tid=11950)



Help to install vim (and others) in NixOS - vfr400racer - 10-26-2020

Hi All!

There is a NixOS image available for the pinecube. Coming across NixOS for the first time. I tried to install vim the way it is recommended e.g. here:
https://www.mpscholten.de/nixos/2016/04/11/setting-up-vim-on-nixos.html

But when I try to switch to the new environment (hopefully this is what I am trying to do on NixOS Sad ), I get these
Code:
[root@nixos:/etc/nixos]# nixos-rebuild switch
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
building Nix...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: file 'nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)

[root@nixos:/etc/nixos]#
Has anybody an idea how to fix this error?