mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-08-21 18:57:17 -05:00
18 lines
281 B
Nix
18 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];
|
|
};
|
|
}
|