about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorAnand Suresh <anandsuresh@gmail.com>2023-06-06 04:32:26 -0400
committerGitHub <noreply@github.com>2023-06-06 10:32:26 +0200
commitaa884b8f3d5e5a3afb6bdcd21ebab8e55512f025 (patch)
tree4ae1c6671c000e46b38752ccda04daa1da8fa5be /nixos/modules/services
parent04c41a12cfcf2ec67a88e3ace841f1b51863a063 (diff)
downloadnixlib-aa884b8f3d5e5a3afb6bdcd21ebab8e55512f025.tar
nixlib-aa884b8f3d5e5a3afb6bdcd21ebab8e55512f025.tar.gz
nixlib-aa884b8f3d5e5a3afb6bdcd21ebab8e55512f025.tar.bz2
nixlib-aa884b8f3d5e5a3afb6bdcd21ebab8e55512f025.tar.lz
nixlib-aa884b8f3d5e5a3afb6bdcd21ebab8e55512f025.tar.xz
nixlib-aa884b8f3d5e5a3afb6bdcd21ebab8e55512f025.tar.zst
nixlib-aa884b8f3d5e5a3afb6bdcd21ebab8e55512f025.zip
improve documentation for `nix.settings.sandbox` (#188541)
* add information on the "relaxed" setting in `nix.settings.sandbox`
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/misc/nix-daemon.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix
index f37d197f1621..26dbae344164 100644
--- a/nixos/modules/services/misc/nix-daemon.nix
+++ b/nixos/modules/services/misc/nix-daemon.nix
@@ -520,10 +520,17 @@ in
                 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 is enabled by default even though it has a possible performance
                 impact 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.
+
+                When set to "relaxed", this option permits derivations that set
+                `__noChroot = true;` to run outside of the sandboxed environment.
+                Exercise caution when using this mode of operation! It is intended to
+                be a quick hack when building with packages that are not easily setup
+                to be built reproducibly.
               '';
             };