From 3d0b9b802ecb38ea6705b0a3a84d8499906365ff Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 15:15:16 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/borgbackup.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'custom') 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 { OnUnitInactiveSec = tCfg.interval; }; }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { + enable = tCfg.prune != {}; + wantedBy = [ "timers.target" ]; timerConfig = { -- cgit v1.2.3