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}} '';