summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/borgbackup.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index 70647334..82d05c89 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -67,9 +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))); 70 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets))) // mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
71
72 systemd.timers = mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
73 wantedBy = [ "timers.target" ]; 71 wantedBy = [ "timers.target" ];
74 72
75 timerConfig = { 73 timerConfig = {