You are not logged in.

#1 2025-02-20 07:46:55

daanturo
Member
Registered: 2022-07-28
Posts: 2

Binaries installed by Nix package manager aren't available

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

#2 2025-02-20 07:59:20

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,824
Website

Re: Binaries installed by Nix package manager aren't available

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

#3 2025-02-20 08:22:07

daanturo
Member
Registered: 2022-07-28
Posts: 2

Re: Binaries installed by Nix package manager aren't available

Head_on_a_Stick wrote:

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

#4 2025-02-26 17:36:55

jennydaman
Member
Registered: 2017-04-04
Posts: 16

Re: Binaries installed by Nix package manager aren't available

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

#5 2025-02-26 17:40:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,476

Re: Binaries installed by Nix package manager aren't available

Offline

Board footer

Powered by FluxBB