7fff73e776
Host (hosts/common/features/gaming/): - move steam.nix under gaming/, add gamemode + gamescope (capSysNice) - sunshine.nix: Sunshine stream host for Moonlight/Nvidia Shield (openFirewall, capSysAdmin for Wayland/KMS capture, autoStart) Home (home/common/programs/gaming.nix): - reusable custom.gaming module: Lutris, Heroic, ProtonPlus, protontricks, MangoHud, vkbasalt, vulkan-tools - NVIDIA-specific extras isolated behind custom.gaming.nvidia Wire konishi: host imports ../gaming; home enables custom.gaming with nvidia = true. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
769 B
Nix
24 lines
769 B
Nix
{ ... }:
|
|
# Host-level gaming stack: the privileged pieces that home-manager can't
|
|
# provide. GPU-vendor-agnostic — NVIDIA/Intel/AMD drivers come from the host's
|
|
# gpu/* module. Pair this with the user-space toolkit in
|
|
# home/common/programs/gaming.nix (custom.gaming).
|
|
{
|
|
imports = [
|
|
./steam.nix
|
|
./sunshine.nix
|
|
];
|
|
|
|
# Feral gamemode: games (and Lutris/Steam launch options) can request a
|
|
# CPU-governor / scheduling boost via `gamemoderun %command%`.
|
|
programs.gamemode.enable = true;
|
|
|
|
# Micro-compositor used for tear-free, frame-paced output and upscaling.
|
|
# capSysNice lets it use realtime scheduling (`--rt`), which also helps the
|
|
# Sunshine capture path stay smooth.
|
|
programs.gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
}
|