Nix Installation Guide: Difference between revisions

imported>Mic92
switch to rust version of nix-user-chroot
imported>Mic92
simplify installation
Line 56: Line 56:
<syntaxHighlight lang="console">
<syntaxHighlight lang="console">
$ mkdir -m 0755 ~/.nix
$ mkdir -m 0755 ~/.nix
$ nix-user-chroot ~/.nix bash
$ nix-user-chroot ~/.nix bash -c 'curl https://nixos.org/nix/install | sh'
</syntaxHighlight>
</syntaxHighlight>


This will start a new shell in which you can run the install script of Nix:
Note that you can only use Nix and the installed programs within the shell started by <code>nix-user-chroot</code>:


<syntaxHighlight lang="console">
<syntaxHighlight lang="console">
$ curl https://nixos.org/nix/install | sh
$ nix-user-chroot ~/.nix bash
</syntaxHighlight>
</syntaxHighlight>
Note that you can only use Nix and the installed programs within the shell started by <code>nix-user-chroot</code>.


=== PRoot ===
=== PRoot ===