mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-13 19:27:53 -06:00
34 lines
681 B
Nix
34 lines
681 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;
|
|
};
|
|
};
|
|
|
|
}
|