From 7e74e17931d73242881248c33b512e79b6ccc6e7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 18 Apr 2021 11:27:43 +0200 Subject: fix(automatic-gc): Fix garbage collection script 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 Reviewed-by: sterni Tested-by: BuildkiteCI --- ops/modules/automatic-gc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ops/modules/automatic-gc.nix') diff --git a/ops/modules/automatic-gc.nix b/ops/modules/automatic-gc.nix index 504408a924..6347857210 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 -- cgit 1.4.1