blob: 756347c84411bdc4493269b8a4d97ba81d23fa7c (
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
|
{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = config.gaming.steam;
in {
config = mkIf cfg.enable {
programs.gamescope = {
enable = true;
capSysNice = false;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
platformOptimizations.enable = config.gaming.enable;
# Fix new steam controller
extest.enable = true;
extraPackages = [pkgs.hidapi];
# add more proton versions
extraCompatPackages = with pkgs; [
proton-ge-bin
];
};
# controllers
hardware.steam-hardware.enable = true;
# gamer mode xd
programs.gamemode.enable = true;
# cod
networking.firewall = {
allowedTCPPorts = [3074];
allowedUDPPorts = [3074];
};
};
}
|