From 56e31d4ca09758873e2e7a01f0b4597094fe5eb8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Dec 2017 14:33:49 +0100 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 | 4 ++-- 1 file 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 { OnBootSec = tCfg.interval; OnUnitInactiveSec = tCfg.interval; }; - }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { + }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path tCfg; }) tCfg.paths) cfg.targets)))) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { wantedBy = [ "timers.target" ]; timerConfig = { @@ -117,7 +117,7 @@ in { IOSchedulingPriority = 7; SuccessExitStatus = [1 2]; }; - })) cfg.targets) // (mapAttrs (target: tCfg: nameValuePair "borgbackup-prune-${target}" { + })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { bindsTo = "network-online.target"; after = "network-online.target"; -- cgit v1.2.3