mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-08-22 03:07:18 -05:00
24 lines
443 B
Nix
24 lines
443 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;
|
|
};
|
|
};
|
|
}
|