nix-darwin
nix-darwin copied to clipboard
use-xdg-base-directories does not effect $PATH
I have set nix.settings.use-xdg-base-directories = true
This means that running nix build .#"[email protected]"
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/
I was trying not to have to use sudo each time so I used the build above - should I not be doing that?