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

If use-xdg-base-directories is true then NIX_PROFILES is not correct #947

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

Comments

@bestlem
Copy link

bestlem commented May 6, 2024

If use-xdg-base-directories is set to trie then the profiles are in $XDG_STATE_HOME/nix/profile rather than ~/.nix-profile

This is covered in nixos by NixOS/nixpkgs#241518 giving

 environment.profiles = [
      "$HOME/.nix-profile"
      "\${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile"
      "/etc/profiles/per-user/$USER"
    ];

SO I think the extra line needs to be added to modules/environment/default.nix

bestlem added a commit to bestlem/nix-darwin that referenced this issue May 7, 2024
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