From 93447a0f164c4fe577ae1ea4635d7dbf12a6dd22 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 13:37:21 +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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'custom') diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index ca7dd6af..e00a9d74 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -76,11 +76,12 @@ in { }; }; + imports = [ + ./lvm-snapshots.nix + ./btrfs-snapshots.nix + ]; + config = mkIf (any (t: t.paths != []) (attrValues cfg.targets)) { - imports = [ - ./lvm-snapshots.nix - ./btrfs-snapshots.nix - ]; services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; -- cgit v1.2.3