mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
23 lines
471 B
Nix
23 lines
471 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
mkOizysModule,
|
|
...
|
|
}:
|
|
mkOizysModule config "vpn" {
|
|
environment.systemPackages = with pkgs; [
|
|
openconnect
|
|
openvpn
|
|
];
|
|
|
|
services.openvpn.servers = {
|
|
express-ny = {
|
|
config = ''
|
|
config /home/${config.oizys.user}/.config/openvpn/express-ny/config.ovpn
|
|
auth-user-pass /home/${config.oizys.user}/.config/openvpn/express-ny/credentials
|
|
'';
|
|
autoStart = false;
|
|
updateResolvConf = true;
|
|
};
|
|
};
|
|
}
|