I have difficulty in installing package as normal user. It says “not an absolute path”. I have yet understand about profile and how it relates to channel, therefor do not know where to look for neither what to modify.
myuser@machine ~
$ nix-env -i hello ~
installing 'hello-2.10'
error: not an absolute path: 'default-1-link'
The operation works normally once I use sudo
.
Here another nixy details.
myuser@machine ~
$ nix-channel --list ~
nixos https://nixos.org/channels/nixos-19.09
myuser@machine ~
$ echo $NIX_PATH ~
nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
myuser@machine ~
$ ls -lih ~/ | grep nix ~
-rw-r--r-- myuser mygroup 45 .nix-channels
drwxr-xr-x myuser mygroup 4.0K .nix-defexpr
lrwxrwxrwx myuser mygroup 29 .nix-profile -> /nix/var/nix/profiles/default
myuser@machine ~
$ ls -lah /nix/var/nix/profiles/default ~
lrwxrwxrwx root root /nix/var/nix/profiles/default -> default-59-link