9 cfg = config.programs.envision;
15 enable = lib.mkEnableOption "envision";
17 package = lib.mkPackageOption pkgs "envision" {};
19 openFirewall = lib.mkEnableOption "the default ports in the firewall for the WiVRn server" // {
25 config = lib.mkIf cfg.enable {
36 packages = with pkgs; [
42 environment.systemPackages = [ cfg.package ];
44 networking.firewall = lib.mkIf cfg.openFirewall {
45 allowedTCPPorts = [ 9757 ];
46 allowedUDPPorts = [ 9757 ];
50 meta.maintainers = pkgs.envision.meta.maintainers;