Enable service and timer
This commit is contained in:
parent
f7f390620f
commit
3023fd2aff
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user