From 79b160dc8266bf603ca4cf9fd06ab15500c64887 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 13:36:57 +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 | 5 +++++ hel.nix | 1 - odin.nix | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 77e7637a..ca7dd6af 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -77,6 +77,11 @@ in { }; 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; services.lvm-snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path) { diff --git a/hel.nix b/hel.nix index a8a3db89..b38c4814 100644 --- a/hel.nix +++ b/hel.nix @@ -14,7 +14,6 @@ ./custom/tinc/def.nix ./custom/tinc/yggdrasil.nix ./custom/uucp.nix - ./custom/btrfs-snapshots.nix ./custom/borgbackup.nix ]; diff --git a/odin.nix b/odin.nix index 0fdcad2e..98287d54 100644 --- a/odin.nix +++ b/odin.nix @@ -11,7 +11,6 @@ ./users.nix ./custom/uucp.nix ./custom/uucp-mediaserver.nix - ./custom/lvm-snapshots.nix ./custom/borgbackup.nix ]; -- cgit v1.2.3