diff --git a/hosts/zephyrus/default.nix b/hosts/zephyrus/default.nix index 0236f1d..ad9083e 100644 --- a/hosts/zephyrus/default.nix +++ b/hosts/zephyrus/default.nix @@ -50,10 +50,6 @@ in passwordFile = config.age.secrets."restic-backup/zephyrus-password".path; environmentFile = config.age.secrets."restic-backup/zephyrus-credentials".path; - timerConfig = { - OnCalendar = "*-*-* 13:00:00"; # laptop only gets used during the day - }; - paths = [ "/home/alarsyo" ]; diff --git a/services/restic-backup.nix b/services/restic-backup.nix index 8d57f5c..624deca 100644 --- a/services/restic-backup.nix +++ b/services/restic-backup.nix @@ -72,13 +72,6 @@ in { type = types.str; default = "/root/restic/creds"; }; - - timerConfig = mkOption { - type = types.attrsOf types.str; - default = { - OnCalendar = "daily"; - }; - }; }; config = mkIf cfg.enable { @@ -96,7 +89,9 @@ in { extraBackupArgs = [ "--verbose=2" ] ++ optional (builtins.length cfg.exclude != 0) excludeArg; - timerConfig = cfg.timerConfig; + timerConfig = { + OnCalendar = "daily"; + }; pruneOpts = makePruneOpts cfg.prune; };