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 6e7ef1af..e65fad2e 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 = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path) { | 89 | services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (systemdPath path) { |
| 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))))); |
