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