29 lines
631 B
Nix
29 lines
631 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
./games.nix
|
|
];
|
|
#
|
|
# Steam stuff
|
|
# source: https://nixos.org/wiki/Talk:Steam
|
|
#
|
|
##TODO: make steam module
|
|
nixpkgs.config.steam.java = true;
|
|
|
|
users.users.games.packages = [ pkgs.steam ];
|
|
|
|
#ports for inhome streaming
|
|
krebs.iptables = {
|
|
tables = {
|
|
filter.INPUT.rules = [
|
|
{ predicate = "-p tcp --dport 27031"; target = "ACCEPT"; }
|
|
{ predicate = "-p tcp --dport 27036"; target = "ACCEPT"; }
|
|
{ predicate = "-p udp --dport 27031"; target = "ACCEPT"; }
|
|
{ predicate = "-p udp --dport 27036"; target = "ACCEPT"; }
|
|
];
|
|
};
|
|
};
|
|
}
|