Nix Installation Guide: Difference between revisions

imported>Drewrisinger
m Fix WSL Install Link
imported>DavHau
No edit summary
Line 72: Line 72:
== Installing without root permissions ==
== Installing without root permissions ==


By using the <code>--store</code> parameter in nix 2.0  or [https://github.com/proot-me/PRoot PRoot],
By using [https://github.com/nix-community/nix-user-chroot nix-user-chroot] or [https://github.com/proot-me/PRoot PRoot], you can use Nix on systems where you have no permission to create the `/nix` directory.
you can use Nix on systems where you have no permission to create the `/nix` directory.
nix-user-chroot is the preferred option. However, it might not run on older Linux kernels, or kernels without user namespace support.
<code>nix run</code> is the preferred and faster option.
However, it might not run on older Linux kernels, or kernels without user namespace support.
With the following command, you can test whether your system supports user namespaces
With the following command, you can test whether your system supports user namespaces
for unprivileged users:
for unprivileged users: