summary refs log tree commit diff stats
path: root/modules/gaming.nix
blob: 44b937a8c187c5cdd7aa248ec28baf42ccd0fcf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{ config, pkgs, ... }:

{ environment.systemPackages = with pkgs; [
    unstable.steam
    (
      unstable.winePackages.unstable.override {
        pngSupport = true;
        jpegSupport = true;
        tiffSupport = true;
        gettextSupport = true;
        fontconfigSupport = true;
        alsaSupport = true;
        gtkSupport = true;
        openglSupport = true;
        tlsSupport = true;
        gstreamerSupport = true;
        cupsSupport = true;
        colorManagementSupport = true;
        dbusSupport = true;
        mpg123Support = true;
        openalSupport = true;
        openclSupport = true;
        cairoSupport = true;
        odbcSupport = true;
        netapiSupport = true;
        cursesSupport = true;
        vaSupport = true;
        pcapSupport = true;
        v4lSupport = true;
        saneSupport = true;
        gsmSupport = true;
        gphoto2Support = true;
        ldapSupport = true;
        pulseaudioSupport = true;
        udevSupport = true;
        xineramaSupport = true;
        xmlSupport = true;
        vulkanSupport = true;
        sdlSupport = true;
      }
    )
    unstable.lutris
  ];
  hardware.steam-hardware.enable = true;
  hardware.opengl.driSupport32Bit = true;
  hardware.pulseaudio.support32Bit = true;

  systemd = {
    extraConfig = ''
      DefaultLimitNOFILE=524288
    '';
    user.extraConfig = ''
      DefaultLimitNOFILE=524288
    '';
  };

  networking.firewall = {
    allowedUDPPorts = [
      27031
      27036
    ];
    allowedTCPPorts = [
      27036
      27037
    ];
  };
}