diff options
Diffstat (limited to 'custom')
-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 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 | }; |