Nix package manager: Difference between revisions

imported>Ixxie
No edit summary
imported>Ixxie
No edit summary
Line 20: Line 20:


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>)


=== Configuration ===
=== Configuration ===


 
==== Sandbox builds ====
=== Sandbox builds ===


When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of <code>fetch*</code> functions and files outside the Nix store.  Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see [https://nixos.org/nix/manual/#description-45 build-use-sandbox] in nix manual for details.
When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of <code>fetch*</code> functions and files outside the Nix store.  Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see [https://nixos.org/nix/manual/#description-45 build-use-sandbox] in nix manual for details.