From 1915862767331dba33bc0f40bc09a3c32a22ebea Mon Sep 17 00:00:00 2001 From: Anders Riutta Date: Mon, 17 Sep 2018 13:19:02 -0700 Subject: [PATCH] Upgrade docs: improve the upgrade command and make it more copy-pastable. --- doc/manual/installation/upgrading.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/manual/installation/upgrading.xml b/doc/manual/installation/upgrading.xml index a3f86ade..30670d7f 100644 --- a/doc/manual/installation/upgrading.xml +++ b/doc/manual/installation/upgrading.xml @@ -7,15 +7,16 @@ Upgrading Nix - Multi-user Nix users on macOS can upgrade Nix by running - sudo -i sh -c 'nix-channel --update && nix-env - -iA nixpkgs.nix'; sudo launchctl stop org.nixos.nix-daemon; sudo - launchctl start org.nixos.nix-daemon. + 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' + - Single-user installations of Nix should run nix-channel - --update; nix-env -iA nixpkgs.nix. + Single-user installations of Nix should run this: + nix-channel --update; nix-env -iA nixpkgs.nix -