nixos/restic: wait for network-online for timed backups
This commit is contained in:
parent
18e6e425b0
commit
a08d69ba63
|
@ -333,6 +333,8 @@ in
|
|||
backup.rcloneConfig);
|
||||
path = [ pkgs.openssh ];
|
||||
restartIfChanged = false;
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = (optionals (backupPaths != "") [ "${resticCmd} backup ${concatStringsSep " " (backup.extraBackupArgs ++ excludeFlags)} ${backupPaths}" ])
|
||||
|
|
Loading…
Reference in a new issue