diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 14:33:49 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 14:33:49 +0100 |
commit | 56e31d4ca09758873e2e7a01f0b4597094fe5eb8 (patch) | |
tree | be7d66405ce7545860659f616fff6b5e9a5f9dc3 /custom | |
parent | afdf1fb1ffaa64400f7c72b66bc6d8865539244f (diff) | |
download | nixos-56e31d4ca09758873e2e7a01f0b4597094fe5eb8.tar nixos-56e31d4ca09758873e2e7a01f0b4597094fe5eb8.tar.gz nixos-56e31d4ca09758873e2e7a01f0b4597094fe5eb8.tar.bz2 nixos-56e31d4ca09758873e2e7a01f0b4597094fe5eb8.tar.xz nixos-56e31d4ca09758873e2e7a01f0b4597094fe5eb8.zip |
…
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 7da35b05..56e5a740 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -67,7 +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)))) // (mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { | 70 | }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { |
71 | wantedBy = [ "timers.target" ]; | 71 | wantedBy = [ "timers.target" ]; |
72 | 72 | ||
73 | timerConfig = { | 73 | timerConfig = { |
@@ -117,7 +117,7 @@ in { | |||
117 | IOSchedulingPriority = 7; | 117 | IOSchedulingPriority = 7; |
118 | SuccessExitStatus = [1 2]; | 118 | SuccessExitStatus = [1 2]; |
119 | }; | 119 | }; |
120 | })) cfg.targets) // (mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { | 120 | })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { |
121 | bindsTo = "network-online.target"; | 121 | bindsTo = "network-online.target"; |
122 | after = "network-online.target"; | 122 | after = "network-online.target"; |
123 | 123 | ||