From f84447c7705c41d738490c058d38ae7eae424440 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Dec 2017 04:11:15 +0100 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 ad351a20..200194a2 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -51,7 +51,7 @@ in { }; }; - config = mkIf (any (t: t.paths != []) cfg.targets) { + config = mkIf (any (t: t.paths != []) (attrValues cfg.targets) { services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; systemd.timers = listToAttrs (map (target: path: nameValuePair "borgbackup-${target}@${path}" { -- cgit v1.2.3