modules/backup: fix systemd unit deps
This commit is contained in:
parent
02ccc58b9e
commit
27b449a95c
@ -29,6 +29,7 @@ let
|
||||
in
|
||||
nameValuePair "clerie-backup-${jobName}-${targetName}" {
|
||||
requires = [ "network.target" "local-fs.target" ];
|
||||
after = [ "network.target" "local-fs.target" ];
|
||||
path = [ pkgs.restic ];
|
||||
|
||||
serviceConfig = {
|
||||
@ -63,6 +64,7 @@ let
|
||||
OnCalendar = "hourly";
|
||||
RandomizedDelaySec = "1h";
|
||||
};
|
||||
requires = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
}
|
||||
) jobTargetPairs);
|
||||
|
Loading…
Reference in New Issue
Block a user