diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 15:10:42 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 15:10:42 +0200 |
commit | 0b38e7f1648766300548df47ead477f4f259a87d (patch) | |
tree | 5fb8beac6d054811f9ca642b4436274f29160a0c | |
parent | 40770405e32fc0a2edad52a64963f9beff0692c7 (diff) | |
download | nixos-0b38e7f1648766300548df47ead477f4f259a87d.tar nixos-0b38e7f1648766300548df47ead477f4f259a87d.tar.gz nixos-0b38e7f1648766300548df47ead477f4f259a87d.tar.bz2 nixos-0b38e7f1648766300548df47ead477f4f259a87d.tar.xz nixos-0b38e7f1648766300548df47ead477f4f259a87d.zip |
disable prune when empty
-rw-r--r-- | custom/borgbackup.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index ab826757..e688e519 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -154,6 +154,8 @@ in { | |||
154 | SuccessExitStatus = [1 2]; | 154 | SuccessExitStatus = [1 2]; |
155 | }; | 155 | }; |
156 | })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { | 156 | })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { |
157 | enable = !(null tCfg.prune); | ||
158 | |||
157 | bindsTo = ["network-online.target"]; | 159 | bindsTo = ["network-online.target"]; |
158 | after = ["network-online.target"]; | 160 | after = ["network-online.target"]; |
159 | 161 | ||