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> | ||
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"> | ||
$ | $ nix-user-chroot ~/.nix bash | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== PRoot === | === PRoot === |