summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 13:47:29 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 13:47:29 +0200
commit9f8314dbfb78f978d402c12dae701035dbfc137a (patch)
treedba9120745a178372124955ec393620c16a488b5
parent7a2d2e21b36cd9212259f23fb8c3a573984a2daa (diff)
downloadnixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar
nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar.gz
nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar.bz2
nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.tar.xz
nixos-9f8314dbfb78f978d402c12dae701035dbfc137a.zip
-rw-r--r--custom/borgbackup.nix2
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)))));