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
Why does nix-darwin install nix 2.11.1 and twice #655
Comments
Hard to say without seeing the source, but I guess your flake references nix as a package or service, which makes it install it again. |
Hi @lockejan Just a installed nix 2.13.3 then build this same flake. flake.nix
./darwinConfigurations/Andrews-MBP.nix
copied to location
|
Update From flake.nix I removed and did a fresh reinstall I didn’t get nix 2.11.1 installed this time
|
I noticed one ownership is root and the other user andrew. So I think the root is from install nix and Andrew owned one is from the flask build. I thought nix-daemon changed permissions and did every thing as root?
|
How do you build your system? What's the command? Sidenote: You don't need pkgs.nixFlakes, bust just pkgs.nix. Flakes are also enabled by default in recent versions of nix. |
I have moved to a newer version of nix-darwin
now if I use the following for nix-darwin and home-manager
I get
I can only get rid of this error and get nix-darwin to use nix 2.13.3 by using now when building
after building
Summary
|
When going through the nix-darwin installer the originally installed nix is not removed from the default profile, but while nix-darwin is used the version of nix specified declaratively will always have priority so this warning from nix doctor is not a problem at all. Keeping the version around in the expected location makes it easier for people to roll back to a still working nix installation if they want to stop using a declarative system configuration. If you want to disable usage of profiles you can do so, which will result in these locations to not be exposed in environment variables like PATH. Alternatively you can delete the package from the default profile as you did. {
environment.profiles = mkForce [];
} The traceback you posed seems more related to home manager, I've used follows in my flake without problems. |
Installed nix 2.13.3
> bash <(curl -L https://releases.nixos.org/nix/nix-2.13.3/install)
every time I install
nix-darwin
as a flakenix 2.11.1
appears installed and linked under /runThis is happens despite installing beforehand and using
nix 2.13
to run nix build anddarwin-rebuild
Is there anyway I can stop this from happening?
The text was updated successfully, but these errors were encountered: