From f38f8194500f986a8015de41fb6acfb5c4916a5b Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Tue, 2 Apr 2024 18:34:57 +0200 Subject: [PATCH] a --- nixos-modules/services/tailscale-openvpn.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos-modules/services/tailscale-openvpn.nix b/nixos-modules/services/tailscale-openvpn.nix index 7676c339..43429559 100644 --- a/nixos-modules/services/tailscale-openvpn.nix +++ b/nixos-modules/services/tailscale-openvpn.nix @@ -56,9 +56,10 @@ with lib; wantedBy = ["multi-user.target"]; script = ''${pkgs.bash}/bin/bash /host${cfg.script}''; unitConfig.Type = "oneshot"; + requiredBy = [ "tailscaled.service" "openvpn-ovpn.service"]; path = [ pkgs.dig pkgs.iproute2 ]; }; - services.openvpn.servers.${name} = { + services.openvpn.servers.ovpn = { config = '' config /host${cfg.config.${name}} '';