Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use-xdg-base-directories does not effect $PATH #943

Open
bestlem opened this issue May 2, 2024 · 0 comments
Open

use-xdg-base-directories does not effect $PATH #943

bestlem opened this issue May 2, 2024 · 0 comments

Comments

@bestlem
Copy link

bestlem commented May 2, 2024

I have set nix.settings.use-xdg-base-directories = true

This means that running nix build .#"homeConfigurations.user@machine.activationPackage" and running the activation home-manager puts things in $XDG_STATE_HOME/nix/profile rather than ~/.nix_profile according to https://nixos.org/manual/nix/stable/command-ref/conf-file

However the path set by nix-darwin includes ~/.nix-profile.bin rather than the XDG one.

Am I correct is assuming that |/.nix-profile should not exist and that the $PATH should include $XDG_STATE_HOME/nix/profile/bin ?

I suspect others are not noticing this as they always use darwin-rebuild with home-manager.useUserPackages = true; so the path is /etc/profiles/per-user//bin which is on the PATH .

I was trying not to have to use sudo each time so I used the build above - should I not be doing that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant