diff options
-rw-r--r-- | custom/borgbackup.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
86 | 86 | ||
87 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; | 87 | services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; |
88 | 88 | ||
89 | services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path.LV) { | 89 | services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (escapeSystemdPath path.LV) { |
90 | inherit (path) LV VG; | 90 | inherit (path) LV VG; |
91 | mountName = "snapshot-${systemdPath path}"; | 91 | mountName = "snapshot-${systemdPath path}"; |
92 | }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); | 92 | }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); |