summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-14 17:32:37 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-14 17:32:37 +0200
commite72a0525c28fc1c0eacb5776ad295b7841f078cd (patch)
tree8a5c71a6ba1f9ef9b05849a05a715ea6df40d58b /custom
parent7c3d67bb98d31f433bb3ab7a2c05c0808c8deac5 (diff)
downloadnixos-e72a0525c28fc1c0eacb5776ad295b7841f078cd.tar
nixos-e72a0525c28fc1c0eacb5776ad295b7841f078cd.tar.gz
nixos-e72a0525c28fc1c0eacb5776ad295b7841f078cd.tar.bz2
nixos-e72a0525c28fc1c0eacb5776ad295b7841f078cd.tar.xz
nixos-e72a0525c28fc1c0eacb5776ad295b7841f078cd.zip
Diffstat (limited to 'custom')
-rw-r--r--custom/borgbackup.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index d46c323c..9c696393 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -90,7 +90,7 @@ in {
90 90
91 services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true; 91 services.btrfs-snapshots.enable = mkIf (cfg.snapshots == "btrfs") true;
92 92
93 services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (escapeSystemdPath path.LV) { 93 services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (escapeSystemdPath (path.VG + "/" + path.LV)) {
94 inherit (path) LV VG; 94 inherit (path) LV VG;
95 mountName = withPrefix (systemdPath path); 95 mountName = withPrefix (systemdPath path);
96 }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); 96 }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets)))));