From 8f148db783bb3b4b2e0f46e956396b7996dfde7b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 3 May 2024 12:39:20 -0500 Subject: [PATCH] add expressvpn config --- modules/networking/vpn.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/networking/vpn.nix b/modules/networking/vpn.nix index a6371a3..aa33c8f 100644 --- a/modules/networking/vpn.nix +++ b/modules/networking/vpn.nix @@ -5,5 +5,16 @@ ... }: mkOizysModule config "vpn" { - environment.systemPackages = [pkgs.openconnect]; + environment.systemPackages = with pkgs; [openconnect openvpn]; + + services.openvpn.servers = { + express-ny = { + config = '' + config /home/daylin/.config/openvpn/express-ny/config.ovpn + auth-user-pass /home/daylin/.config/openvpn/express-ny/credentials + ''; + autoStart = false; + updateResolvConf = true; + }; +}; }