summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:08:48 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:08:48 +0200
commitd23952dc1aef105e8a1a1e31d42499bd2f17953a (patch)
tree412fff48c8d5cb308594fd0acbb03b5e81f0f1dd
parent2a951699f83b0969c7eccb277289b1c7c1305ec7 (diff)
downloadnixos-d23952dc1aef105e8a1a1e31d42499bd2f17953a.tar
nixos-d23952dc1aef105e8a1a1e31d42499bd2f17953a.tar.gz
nixos-d23952dc1aef105e8a1a1e31d42499bd2f17953a.tar.bz2
nixos-d23952dc1aef105e8a1a1e31d42499bd2f17953a.tar.xz
nixos-d23952dc1aef105e8a1a1e31d42499bd2f17953a.zip
-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 = {