diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/borgbackup.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 129b5e2e..35eb0ef1 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -106,7 +106,7 @@ in { | |||
106 | timerConfig = { | 106 | timerConfig = { |
107 | Persistent = false; | 107 | Persistent = false; |
108 | OnBootSec = tCfg.interval; | 108 | OnBootSec = tCfg.interval; |
109 | OnUnitInactiveSec = tCfg.interval; | 109 | OnUnitActiveSec = tCfg.interval; |
110 | RandomizedDelaySec = mkIf (tCfg.jitter != null) tCfg.jitter; | 110 | RandomizedDelaySec = mkIf (tCfg.jitter != null) tCfg.jitter; |
111 | }; | 111 | }; |
112 | }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { | 112 | }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { |
@@ -117,7 +117,7 @@ in { | |||
117 | timerConfig = { | 117 | timerConfig = { |
118 | Persistent = false; | 118 | Persistent = false; |
119 | OnBootSec = tCfg.interval; | 119 | OnBootSec = tCfg.interval; |
120 | OnUnitInactiveSec = tCfg.interval; | 120 | OnUnitActiveSec = tCfg.interval; |
121 | RandomizedDelaySec = mkIf (tCfg.jitter != null) tCfg.jitter; | 121 | RandomizedDelaySec = mkIf (tCfg.jitter != null) tCfg.jitter; |
122 | }; | 122 | }; |
123 | }) cfg.targets); | 123 | }) cfg.targets); |