summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/borgbackup.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index dcdd046d..9fd47805 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -104,6 +104,8 @@ in {
104 OnUnitInactiveSec = tCfg.interval; 104 OnUnitInactiveSec = tCfg.interval;
105 }; 105 };
106 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { 106 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
107 enable = tCfg.prune != {};
108
107 wantedBy = [ "timers.target" ]; 109 wantedBy = [ "timers.target" ];
108 110
109 timerConfig = { 111 timerConfig = {