From fb9155ed7a6d8bfa9ea39a720e671d89abe5842f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 Jan 2020 09:20:03 +0100 Subject: fix borg working dir --- custom/borgbackup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index b292f6f2..1aa1cdec 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -163,7 +163,7 @@ in { serviceConfig = { Type = "oneshot"; - WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${withSuffix "%I"}" else "${withSuffix "%f"}"); + WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${mountPoint}/${withSuffix "%I"}" else "${withSuffix "%f"}"); Nice = 15; IOSchedulingClass = 2; IOSchedulingPriority = 7; -- cgit v1.2.3