oizys/modules/networking/vpn.nix
2024-09-14 18:09:05 -05:00

38 lines
817 B
Nix

{
config,
pkgs,
mkOizysModule,
...
}:
mkOizysModule config "vpn" {
environment.systemPackages = with pkgs; [
openconnect
openvpn
];
services.openvpn.servers = {
# subscription expired
# 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;
# };
#
mullvad-chi = {
config = ''
config /home/daylin/.config/openvpn/mullvad-chi/mullvad_us_chi.conf
'';
autoStart = false;
updateResolvConf = true;
# https://github.com/NixOS/nixpkgs/pull/341223
# what happens when PR's are merged without review...
extraArgs = [];
};
};
}