diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 16:23:45 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 16:23:45 +0200 |
commit | 04c0d1f1e1753c010878c3e402c7bbb4ae7da414 (patch) | |
tree | 43df4ff306b36646f59de9774d4275d7acf54283 /modules | |
parent | docs(modules): Add FIXME/TODO comments (diff) | |
download | nixos-config-04c0d1f1e1753c010878c3e402c7bbb4ae7da414.zip |
fix(modules/nix): Don't keep failed build directories
This feature might be useful, but nix also keeps all transitive dependencies of the failed build. This means that if a big build fails (which might happen repeatably if I debug the build), then the temp directory might fill itself leading to a full system oom.
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/ni/nix/module.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/by-name/ni/nix/module.nix b/modules/by-name/ni/nix/module.nix index e373b9e5..48834b2d 100644 --- a/modules/by-name/ni/nix/module.nix +++ b/modules/by-name/ni/nix/module.nix @@ -54,7 +54,7 @@ fallback = true; # Build from source, if binary can't be substituted - keep-failed = true; # keep failed tmp build dirs + keep-failed = false; # keep failed tmp build dirs pure-eval = true; # restrict file system and network access to hash sandbox-fallback = false; # Don't disable the sandbox, if the kernel doesn't support it |