diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-14 17:48:36 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-14 17:48:36 +0200 |
commit | 9b5f9b49c6a0e628ec3b153c75a1edd4aa03fb95 (patch) | |
tree | a67d97bf9c0c7702e9f1baf7c65afee2c887a148 /custom | |
parent | ffec7ef64c332281472d406a8b1b3995df1e5a25 (diff) | |
download | nixos-9b5f9b49c6a0e628ec3b153c75a1edd4aa03fb95.tar nixos-9b5f9b49c6a0e628ec3b153c75a1edd4aa03fb95.tar.gz nixos-9b5f9b49c6a0e628ec3b153c75a1edd4aa03fb95.tar.bz2 nixos-9b5f9b49c6a0e628ec3b153c75a1edd4aa03fb95.tar.xz nixos-9b5f9b49c6a0e628ec3b153c75a1edd4aa03fb95.zip |
…
Diffstat (limited to 'custom')
-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 865cda3b..8d63e725 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -92,7 +92,7 @@ in { | |||
92 | 92 | ||
93 | services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (path.VG + "-" + path.LV) { | 93 | services.lvm-snapshots.snapshots = mkIf (cfg.snapshots == "lvm") (listToAttrs (map (path: nameValuePair (path.VG + "-" + path.LV) { |
94 | inherit (path) LV VG; | 94 | inherit (path) LV VG; |
95 | mountName = withPrefix (VG + "-" + LV); | 95 | mountName = withPrefix (path.VG + "-" + path.LV); |
96 | }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); | 96 | }) (unique (flatten (mapAttrsToList (target: tCfg: tCfg.paths) cfg.targets))))); |
97 | 97 | ||
98 | systemd.timers = (listToAttrs (map ({ target, path, tCfg }: nameValuePair "borgbackup-${target}@${systemdPath path}" { | 98 | systemd.timers = (listToAttrs (map ({ target, path, tCfg }: nameValuePair "borgbackup-${target}@${systemdPath path}" { |