diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/borgbackup.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 82d05c89..e3e61c82 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -117,9 +117,7 @@ in { | |||
117 | IOSchedulingPriority = 7; | 117 | IOSchedulingPriority = 7; |
118 | SuccessExitStatus = [1 2]; | 118 | SuccessExitStatus = [1 2]; |
119 | }; | 119 | }; |
120 | })) cfg.targets; | 120 | })) cfg.targets // mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { |
121 | |||
122 | systemd.services = mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { | ||
123 | bindsTo = "network-online.target"; | 121 | bindsTo = "network-online.target"; |
124 | after = "network-online.target"; | 122 | after = "network-online.target"; |
125 | 123 | ||