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

This commit is contained in:
Felix Buehler
2022-01-17 15:42:39 +01:00
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