summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 15:15:16 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 15:15:16 +0200
commit3d0b9b802ecb38ea6705b0a3a84d8499906365ff (patch)
treee0d47859e557f8949cfc3bbb8fdb689d10c76ec9
parent30d2149c4b1184e1c8d7a72ade5f70474c90cfc9 (diff)
downloadnixos-3d0b9b802ecb38ea6705b0a3a84d8499906365ff.tar
nixos-3d0b9b802ecb38ea6705b0a3a84d8499906365ff.tar.gz
nixos-3d0b9b802ecb38ea6705b0a3a84d8499906365ff.tar.bz2
nixos-3d0b9b802ecb38ea6705b0a3a84d8499906365ff.tar.xz
nixos-3d0b9b802ecb38ea6705b0a3a84d8499906365ff.zip
-rw-r--r--custom/borgbackup.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index dcdd046d..9fd47805 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -104,6 +104,8 @@ in {
104 OnUnitInactiveSec = tCfg.interval; 104 OnUnitInactiveSec = tCfg.interval;
105 }; 105 };
106 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { 106 }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
107 enable = tCfg.prune != {};
108
107 wantedBy = [ "timers.target" ]; 109 wantedBy = [ "timers.target" ];
108 110
109 timerConfig = { 111 timerConfig = {