oizys/modules/vpn.nix

14 lines
269 B
Nix
Raw Normal View History

2024-01-23 15:12:15 -06:00
{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];
};
}