From 6e36dda31362181007a21fcee8a61c9b7e163af0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 24 Nov 2019 18:59:22 +0100 Subject: ... --- custom/borgbackup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 2c121fae..b292f6f2 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 withSuffix "%I"; + WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${withSuffix "%I"}" else "${withSuffix "%f"}"); Nice = 15; IOSchedulingClass = 2; IOSchedulingPriority = 7; -- cgit v1.2.3