diff options
Diffstat (limited to 'custom/borgbackup.nix')
-rw-r--r-- | custom/borgbackup.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index d68f635d..2cd42e68 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix | |||
@@ -118,7 +118,6 @@ 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") | ||
122 | (optional tCfg.network "network-online.target") | 121 | (optional tCfg.network "network-online.target") |
123 | ]; | 122 | ]; |
124 | in { | 123 | in { |
@@ -147,6 +146,7 @@ in { | |||
147 | unitConfig = { | 146 | unitConfig = { |
148 | AssertPathIsDirectory = mkIf (tCfg.lock != null) "/var/lock"; | 147 | AssertPathIsDirectory = mkIf (tCfg.lock != null) "/var/lock"; |
149 | DefaultDependencies = false; | 148 | DefaultDependencies = false; |
149 | RequiresMountsFor = mkIf (cfg.snapshots == "lvm") [ "${mountPoint}/${withPrefix "%i"}" ]; | ||
150 | }; | 150 | }; |
151 | 151 | ||
152 | serviceConfig = { | 152 | serviceConfig = { |