diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 14:31:43 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 14:31:43 +0100 |
commit | 35c9469e12fda926c4aff261d2d1e398dbd23db7 (patch) | |
tree | ff3ad3307621c1073cf117928b659cd544feae9f /custom/borgbackup.nix | |
parent | bb0f46c0506f08b12414318a05658a880034bb27 (diff) | |
download | nixos-35c9469e12fda926c4aff261d2d1e398dbd23db7.tar nixos-35c9469e12fda926c4aff261d2d1e398dbd23db7.tar.gz nixos-35c9469e12fda926c4aff261d2d1e398dbd23db7.tar.bz2 nixos-35c9469e12fda926c4aff261d2d1e398dbd23db7.tar.xz nixos-35c9469e12fda926c4aff261d2d1e398dbd23db7.zip |
…
Diffstat (limited to 'custom/borgbackup.nix')
-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 | ||