summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs/steam.nix
blob: 4d2d66c6462ac628aba9b3cf4b3ee485d1537027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, pkgs, ... }:

{

  nixpkgs.config.steam.java = true;
  environment.systemPackages = with pkgs; [
    steam
  ];
  hardware.opengl.driSupport32Bit = true;

  #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"; }
      ];
    };
  };
}