@cryptotaxi247 / infra / commits / 2a7f684c

builders: add mindepth to stale build dir pruning

This excludes /nix/var/nix/builds itself.

Martin Weinelt committed Apr 5, 2026 at 18:28 UTC 2a7f684c9ad1b605c61a9b786aba8874c253cfbb
1 file changed +1
builders/common/nix.nix
+1
@@ -49,6 +49,7 @@
49 ExecStart = lib.concatStringsSep " " [
50 (lib.getExe pkgs.findutils)
51 "/nix/var/nix/builds"
52 + "-mindepth 1"
53 "-maxdepth 1"
54 "-type d"
55 "-mtime +1" # days