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