nixos/borgbackup: start remote backup only if network is available
This commit is contained in:
parent
697198834c
commit
91dfaa5453
@ -108,6 +108,8 @@ let
|
||||
timerConfig = {
|
||||
Persistent = cfg.persistentTimer;
|
||||
};
|
||||
# if remote-backup wait for network
|
||||
after = optional (cfg.persistentTimer && !isLocalPath cfg.repo) "network-online.target";
|
||||
};
|
||||
|
||||
# utility function around makeWrapper
|
||||
|
Loading…
Reference in New Issue
Block a user