1
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

View File

@ -29,6 +29,7 @@ let
in in
nameValuePair "clerie-backup-${jobName}-${targetName}" { nameValuePair "clerie-backup-${jobName}-${targetName}" {
requires = [ "network.target" "local-fs.target" ]; requires = [ "network.target" "local-fs.target" ];
after = [ "network.target" "local-fs.target" ];
path = [ pkgs.restic ]; path = [ pkgs.restic ];
serviceConfig = { serviceConfig = {
@ -63,6 +64,7 @@ let
OnCalendar = "hourly"; OnCalendar = "hourly";
RandomizedDelaySec = "1h"; RandomizedDelaySec = "1h";
}; };
requires = [ "network-online.target" ];
after = [ "network-online.target" ]; after = [ "network-online.target" ];
} }
) jobTargetPairs); ) jobTargetPairs);