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 = ''
|
2024-08-02 10:10:11 -05:00
|
|
|
config /home/${config.oizys.user}/.config/openvpn/express-ny/config.ovpn
|
|
|
|
auth-user-pass /home/${config.oizys.user}/.config/openvpn/express-ny/credentials
|
2024-05-03 12:39:20 -05:00
|
|
|
'';
|
|
|
|
autoStart = false;
|
|
|
|
updateResolvConf = true;
|
|
|
|
};
|
2024-05-03 10:51:57 -05:00
|
|
|
};
|
2024-03-21 15:59:10 -05:00
|
|
|
}
|