1 { config, pkgs, lib, ... }:
4 cfg = config.programs.alvr;
9 enable = lib.mkEnableOption "ALVR, the VR desktop streamer";
11 package = lib.mkPackageOption pkgs "alvr" { };
13 openFirewall = lib.mkOption {
14 type = lib.types.bool;
17 Whether to open the default ports in the firewall for the ALVR server.
23 config = lib.mkIf cfg.enable {
24 environment.systemPackages = [ cfg.package ];
26 networking.firewall = lib.mkIf cfg.openFirewall {
27 allowedTCPPorts = [ 9943 9944 ];
28 allowedUDPPorts = [ 9943 9944 ];
32 meta.maintainers = with lib.maintainers; [ passivelemon ];