2020-07-23 00:17:48 +03:00
|
|
|
# Upgrading Nix
|
|
|
|
|
|
|
|
Multi-user Nix users on macOS can upgrade Nix by running: `sudo -i sh -c
|
|
|
|
'nix-channel --update &&
|
2023-04-30 16:52:38 +03:00
|
|
|
nix-env --install --attr nixpkgs.nix &&
|
2020-07-23 00:17:48 +03:00
|
|
|
launchctl remove org.nixos.nix-daemon &&
|
|
|
|
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'`
|
|
|
|
|
|
|
|
Single-user installations of Nix should run this: `nix-channel --update;
|
2023-04-30 16:52:38 +03:00
|
|
|
nix-env --install --attr nixpkgs.nix nixpkgs.cacert`
|
2020-07-23 00:17:48 +03:00
|
|
|
|
|
|
|
Multi-user Nix users on Linux should run this with sudo: `nix-channel
|
2023-04-30 16:52:38 +03:00
|
|
|
--update; nix-env --install --attr nixpkgs.nix nixpkgs.cacert; systemctl
|
2020-07-23 00:17:48 +03:00
|
|
|
daemon-reload; systemctl restart nix-daemon`
|