oizys/modules/networking/vpn.nix

18 lines
305 B
Nix
Raw Normal View History

2024-01-23 19:13:42 -06:00
{
config,
lib,
pkgs,
...
}: let
2024-01-23 15:12:15 -06:00
inherit (lib) mkEnableOption mkIf;
2024-02-27 10:11:44 -06:00
cfg = config.oizys.vpn;
2024-01-23 15:12:15 -06:00
in {
2024-02-27 10:11:44 -06:00
options.oizys.vpn.enable = mkEnableOption ''
Whether to enable openconnect for vpn connection.
2024-01-23 15:12:15 -06:00
'';
config = mkIf cfg.enable {
environment.systemPackages = [pkgs.openconnect];
};
}