Nix Installation Guide: Difference between revisions

imported>Symphorien
imported>Symphorien
Single-user install: explain what to do if the installtion fails because of user namespaces.
Line 11: Line 11:


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>).
==== User namespaces ====
If the installation fails with the following error:
<pre>
installing 'nix-2.2.2'
error: cloning builder process: Invalid argument
error: unable to start build process
</pre>
it is possible that user namepaces are disabled by your distribution. Since Nix 2.2, the sandbox is
enabled by default on Linux which requires user namespaces.
If possible enable them; the procedure depends on the distribution. In last resort, you can disable the sandbox: create the file <code>~/.config/nix/nix.conf</code> and include the line <code>sandbox = false</code>.


== Nix store on an unusual filesystem ==
== Nix store on an unusual filesystem ==