oizys/modules/vpn/default.nix

28 lines
472 B
Nix
Raw Normal View History

2024-11-28 22:53:35 -06:00
{
config,
pkgs,
mkOizysModule,
...
}:
mkOizysModule config "vpn" {
environment.systemPackages = with pkgs; [
openconnect
openvpn
];
services.openvpn.servers = {
2024-12-17 15:07:45 -06:00
mullvad-us-atl = {
2024-11-28 22:53:35 -06:00
config = ''
2024-12-17 15:07:45 -06:00
config ${./mullvad_us_atl.conf}
2024-11-28 22:53:35 -06:00
auth-user-pass ${config.sops.secrets.mullvad-userpass.path}
ca ${config.sops.secrets."mullvad_ca.crt".path}
'';
autoStart = false;
updateResolvConf = true;
};
};
}