You are not logged in.
I installed nix from Arch's pacman. Today "/nix/var/nix/profiles/default/bin" suddenly isn't in the $PATH anymore. If I recall correctly previously it was added by "/etc/profile.d/nix.sh" (but I'm not sure if the file ever existed). Now "/usr/etc/profile.d/nix.sh" exists, but apparently it's not sourced.
Should I just symlink "/etc/profile.d/nix.sh" -> "/usr/etc/profile.d/nix.sh"?
Offline
I've never used Nix but a quick check of the wiki shows:
Note: If you installed Nix from the official repositories, you must add the ~/.nix-profile/bin directory to your PATH manually.
Did you do that?
Jin, Jîyan, Azadî
Offline
I've never used Nix but a quick check of the wiki shows:
Note: If you installed Nix from the official repositories, you must add the ~/.nix-profile/bin directory to your PATH manually.
Did you do that?
I did that, but it doesn't make binaries installed by root/nix (/nix/var/nix/profiles/default/bin) available as before.
Offline
Same issue,
sudo ln -sv /usr/etc/profile.d/nix.sh /etc/profile.d
fixed it.
The Wiki's was last modified on 2024-08-18 however this behavior changed around 2025-02-20, so I would suspect it's a bug in packaging. For me, the only files under /usr/etc are the profile.d files installed by the nix package leading me to believe /usr/etc/profile.d is misplaced.
Offline
Offline