Enable service and timer

This commit is contained in:
Torjus Håkestad 2024-06-02 22:15:35 +02:00
parent f7f390620f
commit 3023fd2aff

View File

@ -47,7 +47,6 @@ in
config = lib.mkIf cfg.enable {
systemd.services."backup-helper@" = {
after = "network-online.target";
enable = false;
environment = {
RESTIC_REPOSITORY = cfg.restic-repository;
} // lib.attrsets.optionalAttrs (builtins.hasAttr "password-file" cfg) {
@ -59,7 +58,6 @@ in
};
};
systemd.timers."backup-helper@" = {
enable = false;
timerConfig = {
OnCalendar = cfg.schedule;
Persistent = true;