From 35c9469e12fda926c4aff261d2d1e398dbd23db7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Dec 2017 14:31:43 +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, 1 insertion(+), 3 deletions(-) diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 82d05c89..e3e61c82 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -117,9 +117,7 @@ in { IOSchedulingPriority = 7; SuccessExitStatus = [1 2]; }; - })) cfg.targets; - - systemd.services = 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