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