update things
This commit is contained in:
parent
af6a3bce3e
commit
620f2867e2
5 changed files with 404 additions and 269 deletions
|
|
@ -10,25 +10,12 @@ with lib.custom; let
|
|||
in {
|
||||
options.services.vpn = with types; {
|
||||
enable = mkBoolOpt false "Enable VPN service(s)";
|
||||
|
||||
mullvad = mkBoolOpt false "Enable Mullvad VPN Daemon";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.mullvad-vpn = {
|
||||
enable = cfg.mullvad;
|
||||
enable = true;
|
||||
package = nixos-stable.mullvad;
|
||||
};
|
||||
|
||||
services.openvpn = {
|
||||
servers = {
|
||||
work = {
|
||||
config = ''config /home/zoey/Downloads/zachary_myers.ovpn'';
|
||||
updateResolvConf = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.openvpn-work.wantedBy = lib.mkForce [];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue