summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-17 04:12:19 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-17 04:12:19 +0100
commite89fc8f61ddf449753de32e03d2939cbb527cda0 (patch)
tree27ffcf4119d606c264cbedbf58da08ed635ac1a0
parent5b85afc757bea2edc92556b26382240fe5449bac (diff)
downloadnixos-e89fc8f61ddf449753de32e03d2939cbb527cda0.tar
nixos-e89fc8f61ddf449753de32e03d2939cbb527cda0.tar.gz
nixos-e89fc8f61ddf449753de32e03d2939cbb527cda0.tar.bz2
nixos-e89fc8f61ddf449753de32e03d2939cbb527cda0.tar.xz
nixos-e89fc8f61ddf449753de32e03d2939cbb527cda0.zip
-rw-r--r--custom/borgbackup.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index 54665c84..f44768ff 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -63,7 +63,7 @@ in {
63 }; 63 };
64 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path; }) tCfg.paths) cfg.targets))); 64 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path; }) tCfg.paths) cfg.targets)));
65 65
66 systemd.services = map (target: nameValuePair "borgbackup-${target}@" (let 66 systemd.services = listToAttrs (map (target: nameValuePair "borgbackup-${target}@" (let
67 deps = flatten [ 67 deps = flatten [
68 optional (cfg.snapshots == "btrfs") "btrfs-snapshot@%i.service" 68 optional (cfg.snapshots == "btrfs") "btrfs-snapshot@%i.service"
69 optional network "network-online.target" 69 optional network "network-online.target"
@@ -96,6 +96,6 @@ in {
96 IOSchedulingPriority = 7; 96 IOSchedulingPriority = 7;
97 SuccessExitStatus = [1 2]; 97 SuccessExitStatus = [1 2];
98 }; 98 };
99 })) (attrNames cfg.targets); 99 })) (attrNames cfg.targets));
100 }; 100 };
101} 101}