diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 08:43:27 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 08:43:27 +0200 |
commit | 060294da494c0e4eb5521a12fa47a484b102536f (patch) | |
tree | 1c2d95213bbcd7826f8ce6d556fb01e7a7aed888 /custom | |
parent | 3b7116f4630b933bbc85dc07fc49a5895b984361 (diff) | |
download | nixos-060294da494c0e4eb5521a12fa47a484b102536f.tar nixos-060294da494c0e4eb5521a12fa47a484b102536f.tar.gz nixos-060294da494c0e4eb5521a12fa47a484b102536f.tar.bz2 nixos-060294da494c0e4eb5521a12fa47a484b102536f.tar.xz nixos-060294da494c0e4eb5521a12fa47a484b102536f.zip |
Poke backup scripts
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); |