diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 13:47:29 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 13:47:29 +0200 |
commit | 9f8314dbfb78f978d402c12dae701035dbfc137a (patch) | |
tree | dba9120745a178372124955ec393620c16a488b5 | |
parent | 7a2d2e21b36cd9212259f23fb8c3a573984a2daa (diff) | |
download | nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar.gz nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar.bz2 nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar.xz nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.zip |
…
-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))))); |