(try to) fix cron

This commit is contained in:
Alex 2022-01-04 11:26:58 +01:00
parent 00811e499b
commit 6cfe9ec7e9
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -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"
];
};
}