@cryptotaxi247 / infra-1 / commits / f612b246

macs: increase gc to 20%

Also removes the -P flag, which is useless when -k is set. It also has an entirely different meaning than in the coreutils version.

Martin Weinelt committed Jan 7, 2025 at 16:49 UTC f612b2463a646c809479c30d4118d2f37c8e2b4f
1 file changed +2 -2
macs/nix-darwin.nix
+2 -2
@@ -66,8 +66,8 @@ in
66 # hourly at the 15th minute
67 Minute = 15;
68 };
69 - # free up to 15% of total capacity
70 - options = "--max-freed $(df -P -k /nix/store | awk 'NR==2 {total=$2; available=$4; required=total*0.15; to_free=required-available; printf \"%.0d\", to_free*1024}')";
69 + # free up to 20% of total capacity
70 + options = "--max-freed $(df -k /nix/store | awk 'NR==2 {total=$2; available=$4; required=total*0.2; to_free=required-available; printf \"%.0d\", to_free*1024}')";
71 };
72 };
73