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 +++++ 1 file changed, 5 insertions(+) (limited to 'custom/borgbackup.nix') 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) { -- cgit v1.2.3