summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/borgbackup.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index 394f84fc..440ecafd 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -118,6 +118,7 @@ in {
118 systemd.services = (mapAttrs' (target: tCfg: nameValuePair "borgbackup-${target}@" (let 118 systemd.services = (mapAttrs' (target: tCfg: nameValuePair "borgbackup-${target}@" (let
119 deps = flatten [ 119 deps = flatten [
120 (optional (cfg.snapshots == "btrfs") "btrfs-snapshot@%i.service") 120 (optional (cfg.snapshots == "btrfs") "btrfs-snapshot@%i.service")
121 (optional (cfg.snapshots == "lvm") "${escapeSystemdPath mountPoint}-${withPrefix "%i"}.mount")
121 (optional tCfg.network "network-online.target") 122 (optional tCfg.network "network-online.target")
122 ]; 123 ];
123 in { 124 in {
@@ -145,6 +146,7 @@ in {
145 146
146 unitConfig = { 147 unitConfig = {
147 AssertPathIsDirectory = mkIf (tCfg.lock != null) "/var/lock"; 148 AssertPathIsDirectory = mkIf (tCfg.lock != null) "/var/lock";
149 DefaultDependencies = false;
148 }; 150 };
149 151
150 serviceConfig = { 152 serviceConfig = {