From 74be6f940f289dd8f8c41bfad163412c1d809914 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 15:13:35 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/borgbackup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index e688e519..8d25ec0b 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -154,7 +154,7 @@ in { SuccessExitStatus = [1 2]; }; })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { - enable = !(null tCfg.prune); + enable = length tCfg.prune != 0; bindsTo = ["network-online.target"]; after = ["network-online.target"]; -- cgit v1.2.3