1
0
Fork 0

modules/backup: fix systemd unit deps

This commit is contained in:
clerie 2024-03-19 18:51:17 +01:00
parent 02ccc58b9e
commit 27b449a95c
1 changed files with 2 additions and 0 deletions

View File

@ -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);