From 16907736b58f1edf298635b529588fbbcb974b04 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 24 Nov 2019 18:52:00 +0100 Subject: ... --- custom/borgbackup.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 73023999..fbe5bb4e 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -87,8 +87,9 @@ in { }; imports = - optional (cfg.snapshots == "lvm") ./lvm-snapshots.nix - ++ optional (cfg.snapshats == "btrfs") ./btrfs-snapshots.nix; + [ ./lvm-snapshots.nix + ./btrfs-snapshots.nix + ]; config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; -- cgit v1.2.3