* Run the garbage collector 4 times a day on the build machines. A Nixpkgs rebuild can easily fill up > 100 GB in a day.
* Run the garbage collector 4 times a day on the build machines. A Nixpkgs rebuild can easily fill up > 100 GB in a day. svn path=/configurations/trunk/tud/; revision=29199
Eelco Dolstra committed
Sep 12, 2011 at 09:06 UTC
c7310e4afd658c2ac33f11f7dbfb361248267f8f
1 file changed
+1
-1
build-machines-common.nix
+1
-1
@@ -24,7 +24,7 @@ with pkgs.lib;
24
25
services.cron.systemCronJobs =
26
[ # Make sure that at least 100 GiB of disk space is available.
27
- "15 03 * * * root nix-store --gc --max-freed \"$((100 * 1024**3 - 1024 * $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" > /var/log/gc.log 2>&1"
27
+ "15 03,09,15,21 * * * root nix-store --gc --max-freed \"$((100 * 1024**3 - 1024 * $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" > /var/log/gc.log 2>&1"
28
];
29
30
networking.hostName = ""; # obtain from DHCP server