oizys/modules/vpn.nix

18 lines
281 B
Nix
Raw Permalink 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;
cfg = config.services.vpn;
in {
options.services.vpn.enable = mkEnableOption ''
use openconnect vpn
'';
config = mkIf cfg.enable {
environment.systemPackages = [pkgs.openconnect];
};
}