diff --git a/default.nix b/default.nix
index a74a01719c73..faed7e263540 100644
--- a/default.nix
+++ b/default.nix
@@ -14,7 +14,7 @@ if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.
- If you installed Nix using the install script (https://nixos.org/nix/install),
it is safe to upgrade by running it again:
- curl https://nixos.org/nix/install | sh
+ curl -L https://nixos.org/nix/install | sh
For more information, please see the NixOS release notes at
https://nixos.org/nixos/manual or locally at
diff --git a/nixos/doc/manual/installation/installing-from-other-distro.xml b/nixos/doc/manual/installation/installing-from-other-distro.xml
index d2d1245c57ac..c08aa0b22fc5 100644
--- a/nixos/doc/manual/installation/installing-from-other-distro.xml
+++ b/nixos/doc/manual/installation/installing-from-other-distro.xml
@@ -47,7 +47,7 @@
Short version:
-$ curl https://nixos.org/nix/install | sh
+$ curl -L https://nixos.org/nix/install | sh
$ . $HOME/.nix-profile/etc/profile.d/nix.sh # …or open a fresh shell
More details in the
diff --git a/nixos/doc/manual/release-notes/rl-1903.xml b/nixos/doc/manual/release-notes/rl-1903.xml
index 8ff1681d3b4a..5593cb3e5dff 100644
--- a/nixos/doc/manual/release-notes/rl-1903.xml
+++ b/nixos/doc/manual/release-notes/rl-1903.xml
@@ -173,7 +173,7 @@
For users of a daemon-less Nix installation on Linux or macOS, you can
- upgrade Nix by running curl https://nixos.org/nix/install |
+ upgrade Nix by running curl -L https://nixos.org/nix/install |
sh, or prior to doing a channel update, running
nix-env -iA nix.