diff --git a/cron.py b/cron.py new file mode 100644 index 0000000..8ac3770 --- /dev/null +++ b/cron.py @@ -0,0 +1,12 @@ +{config, pkgs, ...}: + +{ + services.cron = { + enable = true; + systemCronJobs = [ + "32 6 * * * root /run/current-system/sw/bin/python3 /home/stormwind/incus-incremental-backups.py >> /var/log/incus-backup.log 2>&1" + ]; + }; + +} + diff --git a/master.nix b/master.nix index 3b66b8d..ee4b5fd 100644 --- a/master.nix +++ b/master.nix @@ -24,6 +24,7 @@ in ./incus.nix ./drives.nix ./prometheus.nix + #./cron.nix #./auto-upgrade.nix ];