oizys/modules/networking/vpn.nix

20 lines
431 B
Nix

{
config,
pkgs,
mkOizysModule,
...
}:
mkOizysModule config "vpn" {
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;
};
};
}