nix/nixos/programs/gamer.nix
2025-08-31 15:30:27 +01:00

30 lines
729 B
Nix

{...}: {
allowUnfreePkgNames = [
"steam"
"steam-unwrapped"
"steam-run"
"steam-original"
"osu-lazer"
];
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession = {
enable = true;
args = ["-r" "120" "-W" "3840" "-H" "2160" "-O" "HDMI-A-1" "--rt" "--hdr-enabled" "--adaptive-sync" "--xwayland-count" "2"];
env = {
PROTON_ENABLE_WAYLAND = "1";
PROTON_ENABLE_HDR = "1";
ENABLE_HDR_WSI = "1";
DXVK_HDR = "1";
STEAM_MULTIPLE_XWAYLANDS = "1";
};
};
};
programs.gamescope = {
enable = true;
capSysNice = true;
};
programs.gamemode.enable = true;
}