summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/backup/borgbackup.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2024-04-04 13:49:17 +0200
committerJörg Thalheim <joerg@thalheim.io>2024-04-04 13:49:40 +0200
commit44fd320df69d7331ff94d5e6975281b5d41efd26 (patch)
tree4a6eb69d1d2742622fa5c978c204ccc3fab64e33 /nixos/modules/services/backup/borgbackup.nix
parent3265871df632078dd9f681fb9d92b896c6d0dd23 (diff)
nixos/borgbackup: fix network-online.target warning
service runs after network-online.target but doesn't depend on it.
Diffstat (limited to 'nixos/modules/services/backup/borgbackup.nix')
-rw-r--r--nixos/modules/services/backup/borgbackup.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix
index 6f4455d3be60..4c53b94beffc 100644
--- a/nixos/modules/services/backup/borgbackup.nix
+++ b/nixos/modules/services/backup/borgbackup.nix
@@ -123,6 +123,7 @@ let
};
# if remote-backup wait for network
after = optional (cfg.persistentTimer && !isLocalPath cfg.repo) "network-online.target";
+ wants = optional (cfg.persistentTimer && !isLocalPath cfg.repo) "network-online.target";
};
# utility function around makeWrapper