nixos/borgbackup: start remote backup only if network is available

This commit is contained in:
Felix Buehler 2022-01-11 13:43:07 +01:00
parent 697198834c
commit 91dfaa5453

View File

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