-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Upgrading nix suggest nix upgrade-nix #7794
base: master
Are you sure you want to change the base?
Conversation
@@ -4,7 +4,8 @@ Multi-user Nix users on macOS can upgrade Nix by running: `sudo -i sh -c | |||
'nix-channel --update && | |||
nix-env -iA nixpkgs.nix && | |||
launchctl remove org.nixos.nix-daemon && | |||
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'` | |||
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'` | |||
If this does not work try: `nix upgrade-nix`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably remove the old instructions if they don't work. However, I guess nix upgrade-nix
does still require launchtl
calls. It would be nice if it did that automatically...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old instructions did not worked for me. I assume it might be issue specific to my env.
Perhaps old way works for other people 🤔
The docs for nix upgrade-nix say:
Warning
This program is experimental and its interface is subject to change.
That is why I thought adding this as alternative is a good idea.
WDYT @edolstra?
A question I couldn't find an answer for myself, excuse me if this is off topic, but it may be pertinent: Why does such a command exist in the first place? Is it made for a world where package management is imperative? Because in all of the ecosystem's declarative configuration managers, you'd update your environment to have a newer Nix, symlink that and be done. Or am I badly misunderstanding something? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-44/25546/1 |
Triaged in the Nix team meeting 2023-02-17:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-02-17-nix-team-meeting-minutes-33/25624/1 |
Discussed in the Nix team meeting 2022-02-27:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-02-27-nix-team-meeting-minutes-36/25890/1 |
Motivation
After attempt to update multi-user Nix on macOS using:
it did not work.
Running:
solved the problem.
Context
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*