diff options
-rw-r--r-- | custom/borgbackup.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
23 | 23 | ||
24 | withSuffix = path: path + (if cfg.snapshots == "btrfs" then config.services.btrfs-snapshots.mountSuffix else config.services.lvm-snapshots.mountSuffix); | 24 | withSuffix = path: path + (if cfg.snapshots == "btrfs" then config.services.btrfs-snapshots.mountSuffix else config.services.lvm-snapshots.mountSuffix); |
25 | 25 | ||
26 | mountPoint = if cfg.snapshots == "lvm" then config.services.lvm-snapshots.mountPoint else config.services.btrfs-snapshots.mountPoint; | 26 | mountPoint = if cfg.snapshots == "lvm" then config.services.lvm-snapshots.mountPoint else ""; |
27 | 27 | ||
28 | targetOptions = { | 28 | targetOptions = { |
29 | options = { | 29 | options = { |
@@ -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 "${mountPoint}/${withPrefix "%i"}"); | 166 | WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${withSuffix "%I"}" else "${withSuffix "%i"}"); |
167 | Nice = 15; | 167 | Nice = 15; |
168 | IOSchedulingClass = 2; | 168 | IOSchedulingClass = 2; |
169 | IOSchedulingPriority = 7; | 169 | IOSchedulingPriority = 7; |