mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
38 lines
817 B
Nix
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 = [];
|
|
};
|
|
};
|
|
|
|
}
|