@cryptotaxi247 / infra / commits / 8b27622b

macs: gc twice per hour for up to 100 GB

We see too many alerts about disk fullness and jobs stuck sending inputs because there is no space remaining, so we now gc harder.

Martin Weinelt committed Feb 3, 2026 at 01:43 UTC 8b27622bca81efc9b57cf1ff5b61ae34b3373ef3
1 file changed +10 -6
macs/common.nix
+10 -6
@@ -54,12 +54,16 @@ in
54 };
55 gc = {
56 automatic = true;
57 - interval = {
58 - # hourly at the 15th minute
59 - Minute = 15;
60 - };
61 - # ensure up to 125G free space every hour
62 - options = "--max-freed $(df -k /nix/store | awk 'NR==2 {available=$4; required=125*1024*1024; to_free=required-available; printf \"%.0d\", to_free*1024}')";
57 + interval = [
58 + {
59 + Minute = 15;
60 + }
61 + {
62 + Minute = 45;
63 + }
64 + ];
65 + # ensure up to 100G free space every half hour
66 + options = "--max-freed $(df -k /nix/store | awk 'NR==2 {available=$4; required=100*1024*1024; to_free=required-available; printf \"%.0d\", to_free*1024}')";
67 };
68 };
69