-
Notifications
You must be signed in to change notification settings - Fork 0
/
steam.nix
72 lines (60 loc) · 1.6 KB
/
steam.nix
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
68
69
70
71
72
{ pkgs, ... }:
{
hardware.steam-hardware.enable = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
extest.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
extraPackages = with pkgs; [
# Extra Steam game dependencies go here.
ffmpeg-full
cups
# Needed for Space Station 14 MIDI support.
fluidsynth
# Needed for GTK file dialogs in certain games.
gtk3
pango
cairo
atk
zlib
glib
gdk-pixbuf
# Useful tools for games
gamescope # games cope hehehehehehehe
gamemode
];
};
# Workaround https://github.com/NixOS/nixpkgs/issues/45492
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
security.pam.loginLimits = [{
domain = "*";
type = "hard";
item = "nofile";
value = "1048576";
}];
# Helps some windows games running under Proton.
boot.kernel.sysctl = {
"vm.max_map_count" = 2147483642;
};
environment.sessionVariables = { WINEDEBUG = "-all"; };
# See https://github.com/NixOS/nixpkgs/issues/230575
# Breaks some other things...
#environment.etc = {
# "ssl/certs/f387163d.0".source = "${pkgs.cacert.unbundled}/etc/ssl/certs/Starfield_Class_2_CA:0.crt";
# "ssl/certs/f081611a.0".source = "${pkgs.cacert.unbundled}/etc/ssl/certs/Go_Daddy_Class_2_CA:0.crt";
#};
environment.systemPackages = with pkgs; [
steam-rom-manager
steamtinkerlaunch
proton-caller
protontricks
protonup-qt
steam-run
lutris
];
}