From 3f6de9c937985478e1daf9017936d4a47ad6c47f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 24 Nov 2019 18:53:52 +0100 Subject: ... --- custom/borgbackup.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'custom/borgbackup.nix') diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index fbe5bb4e..12f197a6 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -23,7 +23,7 @@ let withSuffix = path: path + (if cfg.snapshots == "btrfs" then config.services.btrfs-snapshots.mountSuffix else config.services.lvm-snapshots.mountSuffix); - mountPoint = if cfg.snapshots == "lvm" then config.services.lvm-snapshots.mountPoint else config.services.btrfs-snapshots.mountPoint; + mountPoint = if cfg.snapshots == "lvm" then config.services.lvm-snapshots.mountPoint else ""; targetOptions = { options = { @@ -163,7 +163,7 @@ in { serviceConfig = { Type = "oneshot"; - WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${withSuffix "%I"}" else "${mountPoint}/${withPrefix "%i"}"); + WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${withSuffix "%I"}" else "${withSuffix "%i"}"); Nice = 15; IOSchedulingClass = 2; IOSchedulingPriority = 7; -- cgit v1.2.3