* Use absolute path to awk.
svn path=/configurations/trunk/tud/; revision=34662
Eelco Dolstra committed
Jan 5, 2013 at 01:34 UTC
efd4c3963280e1c3bd3b39500a3d39ef4ca7a765
3 files changed
+2
-3
build-machines-common.nix
+1
-1
@@ -22,7 +22,7 @@ with pkgs.lib;
22
23
nix.gc.automatic = true;
24
nix.gc.dates = "15 03,09,15,21 * * *";
25
- nix.gc.options = ''--max-freed "$((100 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))"'';
25
+ nix.gc.options = ''--max-freed "$((100 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
26
27
networking.hostName = ""; # obtain from DHCP server
28
cartman.nix
-1
@@ -302,7 +302,6 @@ rec {
302
systemCronJobs =
303
[
304
#"15 0 * * * root (TZ=CET date; ${pkgs.rsync}/bin/rsync -razv --numeric-ids --delete /data/postgresql /data/webserver/tarballs unixhome.st.ewi.tudelft.nl::bfarm/) >> /var/log/backup.log 2>&1"
305
- "0 3 * * * root nix-store --gc --max-freed \"$((50 * 1024**3 - 1024 * $(df /nix/store | tail -n 1 | awk '{ print $4 }')))\" > /var/log/gc.log 2>&1"
305
"* * * * * root ${pkgs.python}/bin/python ${ZabbixApacheUpdater} -z 192.168.1.5 -c cartman"
306
"40 * * * * root ${duplicityBackup} &>> /var/log/backup-duplicity.log"
307
hydra-module.nix
+1
-1
@@ -135,7 +135,7 @@ in
135
nix.nrBuildUsers = 100;
136
137
nix.gc.automatic = true;
138
- nix.gc.options = ''--max-freed "$((400 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))"'';
138
+ nix.gc.options = ''--max-freed "$((400 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $4 }')))"'';
139
140
nix.extraOptions = ''
141
gc-keep-outputs = true