From d23952dc1aef105e8a1a1e31d42499bd2f17953a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 16:08:48 +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(+) diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 394f84fc..440ecafd 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -118,6 +118,7 @@ in { systemd.services = (mapAttrs' (target: tCfg: nameValuePair "borgbackup-${target}@" (let deps = flatten [ (optional (cfg.snapshots == "btrfs") "btrfs-snapshot@%i.service") + (optional (cfg.snapshots == "lvm") "${escapeSystemdPath mountPoint}-${withPrefix "%i"}.mount") (optional tCfg.network "network-online.target") ]; in { @@ -145,6 +146,7 @@ in { unitConfig = { AssertPathIsDirectory = mkIf (tCfg.lock != null) "/var/lock"; + DefaultDependencies = false; }; serviceConfig = { -- cgit v1.2.3