summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-17 14:31:23 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-17 14:31:23 +0100
commitbb0f46c0506f08b12414318a05658a880034bb27 (patch)
tree3d63bf091889a15213ebbe8b978a8aed17ceb978 /custom
parent01d2927a4eb9f2753c5e2c4e5af820dca18cc9fc (diff)
downloadnixos-bb0f46c0506f08b12414318a05658a880034bb27.tar
nixos-bb0f46c0506f08b12414318a05658a880034bb27.tar.gz
nixos-bb0f46c0506f08b12414318a05658a880034bb27.tar.bz2
nixos-bb0f46c0506f08b12414318a05658a880034bb27.tar.xz
nixos-bb0f46c0506f08b12414318a05658a880034bb27.zip
Diffstat (limited to 'custom')
-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 = {