From e89fc8f61ddf449753de32e03d2939cbb527cda0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Dec 2017 04:12:19 +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 54665c84..f44768ff 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -63,7 +63,7 @@ in { }; }) (flatten (mapAttrsToList (target: tCfg: map (path: { inherit target path; }) tCfg.paths) cfg.targets))); - systemd.services = map (target: nameValuePair "borgbackup-${target}@" (let + systemd.services = listToAttrs (map (target: nameValuePair "borgbackup-${target}@" (let deps = flatten [ optional (cfg.snapshots == "btrfs") "btrfs-snapshot@%i.service" optional network "network-online.target" @@ -96,6 +96,6 @@ in { IOSchedulingPriority = 7; SuccessExitStatus = [1 2]; }; - })) (attrNames cfg.targets); + })) (attrNames cfg.targets)); }; } -- cgit v1.2.3