home(steam): port to home
This commit is contained in:
parent
50749ed595
commit
2081040e55
4 changed files with 56 additions and 23 deletions
14
home/steam/config.nix
Normal file
14
home/steam/config.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
cfg = config.home.steam;
|
||||
in mkIf cfg.enable {
|
||||
hardware.steam-hardware.enable = true;
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 27015 27036 ];
|
||||
allowedUDPPorts = [ 27015 ];
|
||||
allowedUDPPortRanges = [ { from = 27031; to = 27036; } ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue