From 3625eeb2f0670c1e5c75edf11e9774d4b2337359 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 13:39:58 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 6e7ef1af..e65fad2e 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -86,7 +86,7 @@ in { services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; - services.lvm-snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path) { + services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path) { inherit (path) LV VG; mountName = "snapshot-${systemdPath path}"; }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); -- cgit v1.2.3