Fix GC on butters
Eelco Dolstra committed
Jul 10, 2015 at 18:39 UTC
7ae11dd8526579245ba7a36e02650ec78f2ff7a4
1 file changed
+5
-5
delft/lucifer.nix
+5
-5
@@ -74,14 +74,14 @@ with lib;
74
# Run the garbage collector on ‘machine’ to ensure that at least
75
# ‘gbFree’ GiB are free.
76
gcRemote = { machine, gbFree ? 8, df ? "df" }:
77
- "15 03 * * * root ssh -x -i /root/.ssh/id_buildfarm ${machine} " +
77
+ "15 03 * * * root ssh -x -i /var/lib/hydra/queue-runner/.ssh/id_buildfarm ${machine} " +
78
''nix-store --gc --max-freed '$((${toString gbFree} * 1024**3 - 1024 * $(${df} -P -k /nix/store | tail -n 1 | awk "{ print \$4 }")))' > "/var/log/gc-${machine}.log" 2>&1'';
79
in
80
[ (gcRemote { machine = "nix@butters"; gbFree = 50; })
81
- (gcRemote { machine = "nix@garrison"; })
82
- (gcRemote { machine = "nix@demon"; })
83
- (gcRemote { machine = "nix@beastie"; })
84
- (gcRemote { machine = "nix@tweek"; gbFree = 3; df = "/usr/gnu/bin/df"; })
81
+ #(gcRemote { machine = "nix@garrison"; })
82
+ #(gcRemote { machine = "nix@demon"; })
83
+ #(gcRemote { machine = "nix@beastie"; })
84
+ #(gcRemote { machine = "nix@tweek"; gbFree = 3; df = "/usr/gnu/bin/df"; })
85
];
86
87
# Set some cgroup limits.