diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-24 18:53:52 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-24 18:53:52 +0100 |
commit | 3f6de9c937985478e1daf9017936d4a47ad6c47f (patch) | |
tree | 05962a433bc55b2cedfac780188ba2ca7394a87d /custom/borgbackup.nix | |
parent | f8a041aca2c1a481740cbfd8e3d9bc8b68aa7075 (diff) | |
download | nixos-3f6de9c937985478e1daf9017936d4a47ad6c47f.tar nixos-3f6de9c937985478e1daf9017936d4a47ad6c47f.tar.gz nixos-3f6de9c937985478e1daf9017936d4a47ad6c47f.tar.bz2 nixos-3f6de9c937985478e1daf9017936d4a47ad6c47f.tar.xz nixos-3f6de9c937985478e1daf9017936d4a47ad6c47f.zip |
...
Diffstat (limited to 'custom/borgbackup.nix')
-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; |