nixos/hardened: build sandbox incompatible with namespaces

Disables the build sandbox by default to avoid incompatibility with
defaulting user namespaces to false. Ideally there would be some kind of
linux kernel feature that allows us to trust nix-daemon builders to
allow both nix sandbox builds and disabling untrusted naemspaces at the
same time.
This commit is contained in:
Kyle Copperfield 2019-11-19 09:57:23 +00:00
parent 93e8c34e2e
commit 00ac71ab19

View file

@ -20,6 +20,8 @@ with lib;
security.allowUserNamespaces = mkDefault false;
nix.useSandbox = mkDefault false;
security.protectKernelImage = mkDefault true;
security.allowSimultaneousMultithreading = mkDefault false;