From 8509f8113501a35033174f4681a210896a5669e3 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 12 May 2024 23:12:29 +0200 Subject: [PATCH] nixy/wireguard/proton: add service dependency relations --- nixy/configuration.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixy/configuration.nix b/nixy/configuration.nix index c58959a..0a62b4c 100644 --- a/nixy/configuration.nix +++ b/nixy/configuration.nix @@ -215,7 +215,9 @@ description = "wg network interface"; bindsTo = ["netns@wg.service"]; requires = ["network-online.target"]; + wants = ["dnscrypt-proxy2_proton.service"]; after = ["netns@wg.service"]; + before = ["dnscrypt-proxy2_proton.service"]; serviceConfig = { Type = "oneshot"; RemainAfterExit = true; @@ -249,11 +251,9 @@ "network-online.target" "nss-lookup.target" ]; - before = [ - "nss-lookup.target" - ]; + before = ["nss-lookup.target"]; after = ["wg_proton.service"]; - bindsTo = ["netns@wg.service"]; + partOf = ["wg_proton.service"]; serviceConfig = { AmbientCapabilities = "CAP_NET_BIND_SERVICE"; CacheDirectory = "dnscrypt-proxy";