nixos/home/steam/config.nix

28 lines
355 B
Nix
Raw Normal View History

2025-01-13 11:52:09 +08:00
{
pkgs,
lib,
config,
...
}:
with lib;
let
2024-01-07 21:50:42 +08:00
cfg = config.home.steam;
2025-01-13 11:52:09 +08:00
in
mkIf cfg.enable {
2024-01-07 21:50:42 +08:00
hardware.steam-hardware.enable = true;
networking.firewall = {
2025-01-13 11:52:09 +08:00
allowedTCPPorts = [
27015
27036
];
2024-01-07 21:50:42 +08:00
allowedUDPPorts = [ 27015 ];
2025-01-13 11:52:09 +08:00
allowedUDPPortRanges = [
{
from = 27031;
to = 27036;
}
];
2024-01-07 21:50:42 +08:00
};
}