feat(gaming): declarative Proton and dGPU game rendering (#393)

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-07 13:14:42 +08:00
1 parent 90bbe8bc4f
commit 95b849420e
4 files changed
+33 -4

No files matched your search

+20 -4
View File
@@ -40,10 +40,6 @@ in
# ~/.steam - Some Symlinks & user info
enable = true;
package = pkgs-x64.steam;
# https://github.com/ValveSoftware/gamescope
# Run a GameScope driven Steam session from your display-manager
# fix resolution upscaling and stretched aspect ratios
gamescopeSession.enable = true;
# https://github.com/Winetricks/winetricks
# Whether to enable protontricks, a simple wrapper for running Winetricks commands for Proton-enabled games.
protontricks.enable = true;
@@ -52,6 +48,26 @@ in
fontPackages = [
pkgs.wqy_zenhei # Need by steam for Chinese
];
# DW-Proton (Dawn Winery's Proton fork) carries the anti-cheat and game
# patches that mainline Proton/GE-Proton lack, so it is what runs the anime
# gacha games (Wuthering Waves, Honkai: Star Rail, Arknights: Endfield, ...);
# GE-Proton is the general fallback. Both appear as compatibility tools in
# each game's Properties -> Compatibility.
# https://dawn.wine/dawn-winery/dwproton
extraCompatPackages = [
pkgs-x64.dwproton-bin
pkgs-x64.proton-ge-bin
];
};
# GameScope: run a game in its own nested compositor and let it renice
# itself for steadier frame pacing. GPU-specific PRIME render offload belongs
# to the host, not here (see programs.gamescope.env in
# hosts/idols-ai/hardware-nvidia.nix).
# https://github.com/ValveSoftware/gamescope
programs.gamescope = {
enable = true;
capSysNice = true;
};
# see https://github.com/fufexan/nix-gaming/#pipewire-low-latency