Nix Installation Guide: Difference between revisions

imported>Mickours
mNo edit summary
imported>Ktosiek
Adding -L to curl, like on https://nixos.org/download.html
Line 7: Line 7:
<syntaxHighlight lang="console">
<syntaxHighlight lang="console">
$ sudo install -d -m755 -o $(id -u) -g $(id -g) /nix
$ sudo install -d -m755 -o $(id -u) -g $(id -g) /nix
$ curl https://nixos.org/nix/install | sh
$ curl -L https://nixos.org/nix/install | sh
</syntaxHighlight>
</syntaxHighlight>


Line 114: Line 114:
<syntaxHighlight lang="console">
<syntaxHighlight lang="console">
$ mkdir -m 0755 ~/.nix
$ mkdir -m 0755 ~/.nix
$ nix-user-chroot ~/.nix bash -c 'curl https://nixos.org/nix/install | sh'
$ nix-user-chroot ~/.nix bash -c 'curl -L https://nixos.org/nix/install | sh'
</syntaxHighlight>
</syntaxHighlight>


Line 161: Line 161:
* In this new shell, Nix can be installed:
* In this new shell, Nix can be installed:
<syntaxHighlight lang="console">
<syntaxHighlight lang="console">
$ curl https://nixos.org/nix/install | sh
$ curl -L https://nixos.org/nix/install | sh
</syntaxHighlight>
</syntaxHighlight>