aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-04 11:26:58 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-04 11:26:58 +0100
commit6cfe9ec7e9cab7cc69206f5b4433006718b80d79 (patch)
tree4d3b8307b086f7f2fa9d01eab052d22069bd6ed1
parent00811e499bf2485224cb7253878634e1d1ea2ce3 (diff)
downloadnixcfg-6cfe9ec7e9cab7cc69206f5b4433006718b80d79.tar.gz
nixcfg-6cfe9ec7e9cab7cc69206f5b4433006718b80d79.zip
(try to) fix cron
-rw-r--r--site/neptune.nix4
1 files 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"
];
};
}