From 30d2149c4b1184e1c8d7a72ade5f70474c90cfc9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 15:14:06 +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(-) (limited to 'custom') diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 8d25ec0b..dcdd046d 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 = length tCfg.prune != 0; + enable = tCfg.prune != {}; bindsTo = ["network-online.target"]; after = ["network-online.target"]; -- cgit v1.2.3