steam: allow remote play ports

This commit is contained in:
Daniel Flanagan 2024-06-13 18:46:46 -05:00
parent 2b95f07c46
commit c9787b39f8
2 changed files with 17 additions and 1 deletions

View file

@ -3,7 +3,7 @@
enable = true;
text = ''
[build]
rustdocflags = ["--default-theme=ayu"];
rustdocflags = ["--default-theme=ayu"]
'';
};

View file

@ -4,4 +4,20 @@
# programs.steam.package = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.steam;
programs.steam.remotePlay.openFirewall = true;
services.udev.packages = with pkgs; [steam];
# remote play ports
networking.firewall.allowedUDPPortRanges = [
{
from = 27031;
to = 27036;
}
];
networking.firewall.allowedTCPPortRanges = [
{
from = 27036;
to = 27037;
}
];
# UDP 27031, 27036
# TCP 27036, 27037
}