Normalize Nix module formatting and update flake.lock
Consistently format module argument blocks and convert aligned package comments to inline comments. Trim trailing whitespace and minor layout tweaks across modules. Bump opencode rev, narHash and lastModified in flake.lock and remove the original dev ref.
This commit is contained in:
@@ -1,25 +1,30 @@
|
||||
# modules/gaming.nix
|
||||
# Full gaming setup: Steam, Gamemode, Lutris, Heroic, Wine, Proton
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# Steam
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Dedicated servers
|
||||
localNetworkGameTransfers.openFirewall = true; # LAN game transfers
|
||||
remotePlay.openFirewall = true; # Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Dedicated servers
|
||||
localNetworkGameTransfers.openFirewall = true; # LAN game transfers
|
||||
|
||||
# Extra compatibility packages for Proton
|
||||
extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin # GloriousEggroll's Proton fork - better compatibility
|
||||
proton-ge-bin # GloriousEggroll's Proton fork - better compatibility
|
||||
];
|
||||
};
|
||||
|
||||
# Gamemode - Optimize system for gaming
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
enableRenice = true; # Allow renice for priority boost
|
||||
enableRenice = true; # Allow renice for priority boost
|
||||
settings = {
|
||||
general = {
|
||||
renice = 10;
|
||||
@@ -40,20 +45,20 @@
|
||||
# Gaming packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Game launchers
|
||||
lutris # Multi-platform game launcher
|
||||
heroic # Epic Games & GOG launcher
|
||||
lutris # Multi-platform game launcher
|
||||
heroic # Epic Games & GOG launcher
|
||||
|
||||
# Proton management
|
||||
protonup-qt # GUI to manage Proton-GE versions
|
||||
protonup-qt # GUI to manage Proton-GE versions
|
||||
|
||||
# Wine for non-Steam games
|
||||
wineWowPackages.stagingFull # Latest Wine with all features
|
||||
winetricks # Wine helper scripts
|
||||
protontricks # Proton helper scripts (like winetricks for Proton)
|
||||
wineWowPackages.stagingFull # Latest Wine with all features
|
||||
winetricks # Wine helper scripts
|
||||
protontricks # Proton helper scripts (like winetricks for Proton)
|
||||
|
||||
# Misc gaming utilities
|
||||
gamemode # CLI tool to trigger gamemode
|
||||
gamescope # Micro-compositor for games (fixes some issues)
|
||||
gamemode # CLI tool to trigger gamemode
|
||||
gamescope # Micro-compositor for games (fixes some issues)
|
||||
];
|
||||
|
||||
# Gaming-related kernel tweaks
|
||||
@@ -68,7 +73,7 @@
|
||||
|
||||
# Udev rules for game controllers
|
||||
services.udev.packages = with pkgs; [
|
||||
game-devices-udev-rules # Support for various game controllers
|
||||
game-devices-udev-rules # Support for various game controllers
|
||||
];
|
||||
|
||||
# Add user to gamemode group
|
||||
|
||||
Reference in New Issue
Block a user