blob: 8decad3bf93e6cf69bdca3e9b4a7d6a9ed93f3b5 (
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
|
{
config,
pkgs,
lib,
...
}: let
cfg = config.features.gui.apps.steam;
in {
options.features.gui.apps.steam.enable = lib.mkEnableOption "steam";
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
package = pkgs.steam.override {
extraArgs = "-system-composer";
};
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
};
hardware.steam-hardware.enable = true;
programs.gamemode.enable = true;
environment.systemPackages = with pkgs; [
mangohud
winetricks
wine-wayland
];
# Steam Launch Options
# Add this to 3D games:
# LD_PRELOAD="" gamescope --force-grab-cursor --backend sdl -bf -W 1600 -H 900 -- %command%
# Add this to 2D games:
# LD_PRELOAD="" gamescope -bf -W 1600 -H 900 -- %command%
};
}
|