summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-13 08:43:27 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-13 08:43:27 +0200
commit060294da494c0e4eb5521a12fa47a484b102536f (patch)
tree1c2d95213bbcd7826f8ce6d556fb01e7a7aed888 /custom
parent3b7116f4630b933bbc85dc07fc49a5895b984361 (diff)
downloadnixos-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.nix4
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);