From 04c0d1f1e1753c010878c3e402c7bbb4ae7da414 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Apr 2025 16:23:45 +0200 Subject: 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. --- modules/by-name/ni/nix/module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1