Nix Installation Guide: Difference between revisions

imported>Ixxie
Moved install instructions from the Nix article.
 
imported>Ixxie
No edit summary
Line 13: Line 13:
After that being done, you can use all Nix commands as a normal user without any special permissions (for example by using <code>sudo</code>)
After that being done, you can use all Nix commands as a normal user without any special permissions (for example by using <code>sudo</code>)


=== Installing without root permissions ===
== Installing without root permissions ==


By using [https://github.com/lethalman/nix-user-chroot nix-user-chroot] or [https://github.com/proot-me/PRoot PRoot]
By using [https://github.com/lethalman/nix-user-chroot nix-user-chroot] or [https://github.com/proot-me/PRoot PRoot]
Line 36: Line 36:
If the output of this command is <code>CONFIG_USER_NS=y</code> your system supports user namespaces.
If the output of this command is <code>CONFIG_USER_NS=y</code> your system supports user namespaces.


==== nix-user-chroot ====
=== nix-user-chroot ===


<code>nix-user-chroot</code> will create an environment, in which you can bind mount an directory to <code>/nix</code>.
<code>nix-user-chroot</code> will create an environment, in which you can bind mount an directory to <code>/nix</code>.
Line 67: Line 67:
Note that you can only use nix and the installed programs within the shell started by <code>nix-user-chroot</code>.
Note that you can only use nix and the installed programs within the shell started by <code>nix-user-chroot</code>.


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


Precompiled PRoot binaries can be downloaded from [https://github.com/proot-me/proot-static-build/releases here]
Precompiled PRoot binaries can be downloaded from [https://github.com/proot-me/proot-static-build/releases here]