summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2020-01-06 09:20:03 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2020-01-06 09:20:03 +0100
commitfb9155ed7a6d8bfa9ea39a720e671d89abe5842f (patch)
tree260c9cea12226d7cb3cf562ebc7e2b38950ee80b /custom
parent03b984ffa4f9fc5850ed513d390b465b33609f27 (diff)
downloadnixos-fb9155ed7a6d8bfa9ea39a720e671d89abe5842f.tar
nixos-fb9155ed7a6d8bfa9ea39a720e671d89abe5842f.tar.gz
nixos-fb9155ed7a6d8bfa9ea39a720e671d89abe5842f.tar.bz2
nixos-fb9155ed7a6d8bfa9ea39a720e671d89abe5842f.tar.xz
nixos-fb9155ed7a6d8bfa9ea39a720e671d89abe5842f.zip
fix borg working dir
Diffstat (limited to 'custom')
-rw-r--r--custom/borgbackup.nix2
1 files changed, 1 insertions, 1 deletions
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 {
163 163
164 serviceConfig = { 164 serviceConfig = {
165 Type = "oneshot"; 165 Type = "oneshot";
166 WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${withSuffix "%I"}" else "${withSuffix "%f"}"); 166 WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${mountPoint}/${withSuffix "%I"}" else "${withSuffix "%f"}");
167 Nice = 15; 167 Nice = 15;
168 IOSchedulingClass = 2; 168 IOSchedulingClass = 2;
169 IOSchedulingPriority = 7; 169 IOSchedulingPriority = 7;