mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -06:00
28 lines
469 B
Nix
28 lines
469 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
mkOizysModule,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
mkOizysModule config "vpn" {
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
|
||
|
openconnect
|
||
|
openvpn
|
||
|
];
|
||
|
services.openvpn.servers = {
|
||
|
|
||
|
mullvad-chi = {
|
||
|
config = ''
|
||
|
config ${./mullvad_us_chi.conf}
|
||
|
auth-user-pass ${config.sops.secrets.mullvad-userpass.path}
|
||
|
ca ${config.sops.secrets."mullvad_ca.crt".path}
|
||
|
'';
|
||
|
|
||
|
autoStart = false;
|
||
|
updateResolvConf = true;
|
||
|
};
|
||
|
};
|
||
|
}
|