diff options
author | Brandon Elam Barker <brandon.barker@gmail.com> | 2018-06-07 16:43:52 -0400 |
---|---|---|
committer | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-06-07 21:43:52 +0100 |
commit | f098e60ecfe9f2d7b1d51a58e00a09656099b342 (patch) | |
tree | be801af42b27a671fb2296a8c3053c51a5492067 /nixos/modules/services/misc/nix-daemon.nix | |
parent | 0f8594170a7593063886fca4c3820a0b104a47d7 (diff) | |
download | nixpkgs-f098e60ecfe9f2d7b1d51a58e00a09656099b342.tar nixpkgs-f098e60ecfe9f2d7b1d51a58e00a09656099b342.tar.gz nixpkgs-f098e60ecfe9f2d7b1d51a58e00a09656099b342.tar.bz2 nixpkgs-f098e60ecfe9f2d7b1d51a58e00a09656099b342.tar.lz nixpkgs-f098e60ecfe9f2d7b1d51a58e00a09656099b342.tar.xz nixpkgs-f098e60ecfe9f2d7b1d51a58e00a09656099b342.tar.zst nixpkgs-f098e60ecfe9f2d7b1d51a58e00a09656099b342.zip |
nixos/sandbox: improve documentation.
This was put together based on feedback from LnL on IRC.
Diffstat (limited to 'nixos/modules/services/misc/nix-daemon.nix')
-rw-r--r-- | nixos/modules/services/misc/nix-daemon.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index 429ce09ea68..0ee105e4c6f 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -130,11 +130,13 @@ in default = false; description = " If set, Nix will perform builds in a sandboxed environment that it - will set up automatically for each build. This prevents - impurities in builds by disallowing access to dependencies - outside of the Nix store. This isn't enabled by default for - performance. It doesn't affect derivation hashes, so changing - this option will not trigger a rebuild of packages. + will set up automatically for each build. This prevents impurities + in builds by disallowing access to dependencies outside of the Nix + store by using network and mount namespaces in a chroot environment. + This isn't enabled by default for possible performance impacts due to + the initial setup time of a sandbox for each build. It doesn't affect + derivation hashes, so changing this option will not trigger a rebuild + of packages. "; }; |