oizys/modules/networking/vpn.nix
2024-01-25 12:23:32 -06:00

17 lines
281 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.services.vpn;
in {
options.services.vpn.enable = mkEnableOption ''
use openconnect vpn
'';
config = mkIf cfg.enable {
environment.systemPackages = [pkgs.openconnect];
};
}