Add gaming.nix for ringtail: gamescope + consolidate Steam config

Move Steam config from configuration.nix to a dedicated gaming.nix module
and add gamescope for fullscreen/resolution management with Proton games.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-04-02 15:48:36 -07:00
commit 5de2ed9f96
3 changed files with 17 additions and 6 deletions

View file

@ -113,12 +113,6 @@ in
polkitPolicyOwners = [ "eblume" ]; polkitPolicyOwners = [ "eblume" ];
}; };
# Steam
programs.steam = {
enable = true;
dedicatedServer.openFirewall = true;
};
# K3s single-node cluster # K3s single-node cluster
services.k3s = { services.k3s = {
enable = true; enable = true;

View file

@ -28,6 +28,7 @@
./disk-config.nix ./disk-config.nix
./hardware-configuration.nix ./hardware-configuration.nix
./configuration.nix ./configuration.nix
./gaming.nix
# Pin versioned services to nixpkgs-services instead of the rolling nixpkgs. # Pin versioned services to nixpkgs-services instead of the rolling nixpkgs.
# This prevents `nix flake update nixpkgs` from silently upgrading them. # This prevents `nix flake update nixpkgs` from silently upgrading them.
# Bump nixpkgs-services explicitly during service reviews. # Bump nixpkgs-services explicitly during service reviews.

16
nixos/ringtail/gaming.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
# Steam
programs.steam = {
enable = true;
dedicatedServer.openFirewall = true;
};
# Gamescope — micro-compositor for game fullscreen/resolution management.
# Use as Steam launch option: gamescope -W 2560 -H 1440 -f -- %command%
programs.gamescope = {
enable = true;
capSysNice = true; # Allow gamescope to set realtime scheduling
};
}