mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -06:00
27 lines
472 B
Nix
27 lines
472 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
mkOizysModule,
|
|
...
|
|
}:
|
|
|
|
mkOizysModule config "vpn" {
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
openconnect
|
|
openvpn
|
|
];
|
|
services.openvpn.servers = {
|
|
|
|
mullvad-us-atl = {
|
|
config = ''
|
|
config ${./mullvad_us_atl.conf}
|
|
auth-user-pass ${config.sops.secrets.mullvad-userpass.path}
|
|
ca ${config.sops.secrets."mullvad_ca.crt".path}
|
|
'';
|
|
|
|
autoStart = false;
|
|
updateResolvConf = true;
|
|
};
|
|
};
|
|
}
|