From 0b38e7f1648766300548df47ead477f4f259a87d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 15:10:42 +0200 Subject: disable prune when empty --- custom/borgbackup.nix | 2 ++ 1 file changed, 2 insertions(+) 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 { SuccessExitStatus = [1 2]; }; })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { + enable = !(null tCfg.prune); + bindsTo = ["network-online.target"]; after = ["network-online.target"]; -- cgit v1.2.3