diff --git a/systems/zaatar/configuration.nix b/systems/zaatar/configuration.nix index 89eb0e5..9dc2658 100644 --- a/systems/zaatar/configuration.nix +++ b/systems/zaatar/configuration.nix @@ -1,6 +1,6 @@ { config, pkgs, lib, ... }: let - inherit (import ) retiolumAddresses; + inherit (import ) retiolumAddresses restic; in { imports = [ @@ -26,6 +26,16 @@ in ]; + services.restic.backups.moodle-dl = { + initialize = true; + inherit (restic) repository; + timerConfig = { OnCalendar = "daily"; RandomizedDelaySec = "5h"; }; + passwordFile = toString ; + paths = [ + "/var/lib/moodle-dl" + ]; + }; + nix.nixPath = [ "/var/src" ]; services.logind = {