You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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-fileHowever 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?
The text was updated successfully, but these errors were encountered: