From 9f8314dbfb78f978d402c12dae701035dbfc137a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 13:47:29 +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 ed1976fc..fe380695 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.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path.LV) { + services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (escapeSystemdPath path.LV) { inherit (path) LV VG; mountName = "snapshot-${systemdPath path}"; }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); -- cgit v1.2.3