about summary refs log tree commit diff
path: root/ops/modules/automatic-gc.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-04-18T09·27+0200
committertazjin <mail@tazj.in>2021-04-18T09·44+0000
commit7e74e17931d73242881248c33b512e79b6ccc6e7 (patch)
tree7d2787dd00c7a5173df260e8b7139b3fe5bdff3f /ops/modules/automatic-gc.nix
parentc4c23a0715cd65bdd1ddcf522bfd94f018012548 (diff)
fix(automatic-gc): Fix garbage collection script r/2524
It needs to refer to this by full path of course.

Change-Id: I911c876ba18877681accb722426314d92b9f2318
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3042
Reviewed-by: lukegb <lukegb@tvl.fyi>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'ops/modules/automatic-gc.nix')
-rw-r--r--ops/modules/automatic-gc.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/ops/modules/automatic-gc.nix b/ops/modules/automatic-gc.nix
index 504408a92497..634785721024 100644
--- a/ops/modules/automatic-gc.nix
+++ b/ops/modules/automatic-gc.nix
@@ -22,7 +22,7 @@ let
       echo "Have ''${AVAILABLE_KIB} KiB, but want ''${MIN_THRESHOLD_KIB} KiB."
       echo "Triggering Nix garbage collection up to ''${MAX_FREED_BYTES} bytes."
       set -x
-      nix-collect-garbage \
+      ${config.nix.package}/bin/nix-collect-garbage \
         --delete-older-than "''${GEN_THRESHOLD}" \
         --max-freed "''${MAX_FREED_BYTES}"
     else