summaryrefslogtreecommitdiff
path: root/custom/borgbackup.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/borgbackup.nix')
-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}