mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
14 lines
269 B
Nix
14 lines
269 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];
|
||
|
};
|
||
|
}
|