From 6cfe9ec7e9cab7cc69206f5b4433006718b80d79 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 4 Jan 2022 11:26:58 +0100 Subject: (try to) fix cron --- site/neptune.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/neptune.nix b/site/neptune.nix index b29442c..37e18eb 100644 --- a/site/neptune.nix +++ b/site/neptune.nix @@ -13,8 +13,8 @@ services.cron = { enable = true; systemCronJobs = [ - "0 2 * * * ${config.system.path}/bin/nix-collect-garbage --delete-older-than 10d >> /root/nix_gc_log 2>&1" - "30 2 * * * ${config.system.path}/bin/docker run --rm -it -v /var/lib/drone/nix:/nix nixpkgs/nix:nixos-21.05 nix-collect-garbage --delete-older-than 10d >> /root/drone_nix_gc_log 2>&1" + "0 2 * * * root nix-collect-garbage --delete-older-than 10d >> /root/nix_gc_log 2>&1" + "30 2 * * * root docker run --rm -it -v /var/lib/drone/nix:/nix nixpkgs/nix:nixos-21.05 nix-collect-garbage --delete-older-than 10d >> /root/drone_nix_gc_log 2>&1" ]; }; } -- cgit v1.2.3