1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

Enable sandboxing by default

Closes #179.
This commit is contained in:
Eelco Dolstra 2018-11-07 17:08:28 +01:00
parent 5a3f140856
commit 812e39313c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
5 changed files with 34 additions and 10 deletions

View file

@ -195,7 +195,13 @@ public:
Setting<bool> showTrace{this, false, "show-trace",
"Whether to show a stack trace on evaluation errors."};
Setting<SandboxMode> sandboxMode{this, smDisabled, "sandbox",
Setting<SandboxMode> sandboxMode{this,
#if __linux__
smEnabled
#else
smDisabled
#endif
, "sandbox",
"Whether to enable sandboxed builds. Can be \"true\", \"false\" or \"relaxed\".",
{"build-use-chroot", "build-use-sandbox"}};