From e72a0525c28fc1c0eacb5776ad295b7841f078cd Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 14 Apr 2018 17:32:37 +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(-) (limited to 'custom') diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index d46c323c..9c696393 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -90,7 +90,7 @@ in { services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; - services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (escapeSystemdPath path.LV) { + services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (escapeSystemdPath (path.VG + "/" + path.LV)) { inherit (path) LV VG; mountName = withPrefix (systemdPath path); }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); -- cgit v1.2.3