mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-23 02:40:45 -06:00
17 lines
305 B
Nix
17 lines
305 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
cfg = config.oizys.vpn;
|
|
in {
|
|
options.oizys.vpn.enable = mkEnableOption ''
|
|
Whether to enable openconnect for vpn connection.
|
|
'';
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [pkgs.openconnect];
|
|
};
|
|
}
|