summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-09-26 14:09:56 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-09-26 14:09:56 +0200
commited3148f8d031e54a1880cc1ba9193de5f50e560d (patch)
tree7730e17e43b104b92465eda88fb606221c83b26f /custom
parent667bc2e06b522b6f78b5355a184cefc3f68d899c (diff)
downloadnixos-ed3148f8d031e54a1880cc1ba9193de5f50e560d.tar
nixos-ed3148f8d031e54a1880cc1ba9193de5f50e560d.tar.gz
nixos-ed3148f8d031e54a1880cc1ba9193de5f50e560d.tar.bz2
nixos-ed3148f8d031e54a1880cc1ba9193de5f50e560d.tar.xz
nixos-ed3148f8d031e54a1880cc1ba9193de5f50e560d.zip
...
Diffstat (limited to 'custom')
-rw-r--r--custom/borgbackup.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index dabf4200..c67287a4 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -172,7 +172,7 @@ in {
172 Type = "oneshot"; 172 Type = "oneshot";
173 WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${mountPoint}/${withPrefix "%I"}" else "${mountPoint}/${withPrefix "%i"}"); 173 WorkingDirectory = if (cfg.snapshots == null) then "%I" else (if (cfg.snapshots == "lvm") then "${mountPoint}/${withPrefix "%I"}" else "${mountPoint}/${withPrefix "%i"}");
174 SuccessExitStatus = [1 2]; 174 SuccessExitStatus = [1 2];
175 Slice = "system-borgbackup"; 175 Slice = "system-borgbackup.slice";
176 }; 176 };
177 })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" { 177 })) cfg.targets) // (mapAttrs' (target: tCfg: nameValuePair "borgbackup-prune-${target}" {
178 enable = tCfg.prune != {}; 178 enable = tCfg.prune != {};
@@ -194,7 +194,7 @@ in {
194 194
195 serviceConfig = { 195 serviceConfig = {
196 Type = "oneshot"; 196 Type = "oneshot";
197 Slice = "system-borgbackup"; 197 Slice = "system-borgbackup.slice";
198 }; 198 };
199 }) cfg.targets); 199 }) cfg.targets);
200 }; 200 };