summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/borgbackup.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index 7da35b05..56e5a740 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -67,7 +67,7 @@ in {
67 OnBootSec = tCfg.interval; 67 OnBootSec = tCfg.interval;
68 OnUnitInactiveSec = tCfg.interval; 68 OnUnitInactiveSec = tCfg.interval;
69 }; 69 };
70 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { 70 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
71 wantedBy = [ "timers.target" ]; 71 wantedBy = [ "timers.target" ];
72 72
73 timerConfig = { 73 timerConfig = {
@@ -117,7 +117,7 @@ in {
117 IOSchedulingPriority = 7; 117 IOSchedulingPriority = 7;
118 SuccessExitStatus = [1 2]; 118 SuccessExitStatus = [1 2];
119 }; 119 };
120 })) cfg.targets) // (mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { 120 })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
121 bindsTo = "network-online.target"; 121 bindsTo = "network-online.target";
122 after = "network-online.target"; 122 after = "network-online.target";
123 123