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:
parent
306f580bdb
commit
5de2ed9f96
3 changed files with 17 additions and 6 deletions
|
|
@ -113,12 +113,6 @@ in
|
|||
polkitPolicyOwners = [ "eblume" ];
|
||||
};
|
||||
|
||||
# Steam
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
|
||||
# K3s single-node cluster
|
||||
services.k3s = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
./disk-config.nix
|
||||
./hardware-configuration.nix
|
||||
./configuration.nix
|
||||
./gaming.nix
|
||||
# Pin versioned services to nixpkgs-services instead of the rolling nixpkgs.
|
||||
# This prevents `nix flake update nixpkgs` from silently upgrading them.
|
||||
# Bump nixpkgs-services explicitly during service reviews.
|
||||
|
|
|
|||
16
nixos/ringtail/gaming.nix
Normal file
16
nixos/ringtail/gaming.nix
Normal 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
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue