oizys/modules/networking/vpn.nix

24 lines
443 B
Nix
Raw Permalink Normal View History

2024-01-23 19:13:42 -06:00
{
config,
pkgs,
2024-03-21 15:59:10 -05:00
mkOizysModule,
2024-01-23 19:13:42 -06:00
...
2024-03-21 15:59:10 -05:00
}:
mkOizysModule config "vpn" {
2024-05-06 14:32:00 -05:00
environment.systemPackages = with pkgs; [
openconnect
openvpn
];
2024-05-03 12:39:20 -05:00
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;
};
2024-05-03 10:51:57 -05:00
};
2024-03-21 15:59:10 -05:00
}