summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 13:39:58 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 13:39:58 +0200
commit3625eeb2f0670c1e5c75edf11e9774d4b2337359 (patch)
treedfeb0016cc9ce159739105642d3914e3f3125bb4
parent1607c60bceea5954704252bda0848bad2ccfafbf (diff)
downloadnixos-3625eeb2f0670c1e5c75edf11e9774d4b2337359.tar
nixos-3625eeb2f0670c1e5c75edf11e9774d4b2337359.tar.gz
nixos-3625eeb2f0670c1e5c75edf11e9774d4b2337359.tar.bz2
nixos-3625eeb2f0670c1e5c75edf11e9774d4b2337359.tar.xz
nixos-3625eeb2f0670c1e5c75edf11e9774d4b2337359.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 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)))));