fix formatting

This commit is contained in:
Melvin Ragusa
2026-02-03 11:14:57 +01:00
parent 5e91500f25
commit b53c2ecaa9
10 changed files with 147 additions and 93 deletions

View File

@@ -9,7 +9,9 @@
}:
{
# Steam
# ═══════════════════════════════════════════════════════════════
# STEAM
# ═══════════════════════════════════════════════════════════════
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Steam Remote Play
@@ -22,7 +24,13 @@
];
};
# Gamemode - Optimize system for gaming
# Steam hardware support (controllers, VR, etc.)
hardware.steam-hardware.enable = true;
# ═══════════════════════════════════════════════════════════════
# GAMEMODE
# ═══════════════════════════════════════════════════════════════
# Optimize system for gaming
programs.gamemode = {
enable = true;
enableRenice = true; # Allow renice for priority boost
@@ -40,10 +48,9 @@
};
};
# Steam hardware support (controllers, VR, etc.)
hardware.steam-hardware.enable = true;
# Gaming packages
# ═══════════════════════════════════════════════════════════════
# GAMING PACKAGES
# ═══════════════════════════════════════════════════════════════
# NOTE: Game launchers (lutris, heroic, protonup-qt) are in `nix profile`
environment.systemPackages = with pkgs; [
# Wine for non-Steam games
@@ -61,7 +68,9 @@
heroic
];
# Gaming-related kernel tweaks
# ═══════════════════════════════════════════════════════════════
# KERNEL TWEAKS
# ═══════════════════════════════════════════════════════════════
boot.kernel.sysctl = {
# Increase file watchers for large games
"fs.inotify.max_user_watches" = 524288;
@@ -71,11 +80,17 @@
"vm.vfs_cache_pressure" = 50;
};
# ═══════════════════════════════════════════════════════════════
# CONTROLLER SUPPORT
# ═══════════════════════════════════════════════════════════════
# Udev rules for game controllers
services.udev.packages = with pkgs; [
game-devices-udev-rules # Support for various game controllers
];
# ═══════════════════════════════════════════════════════════════
# USER PERMISSIONS
# ═══════════════════════════════════════════════════════════════
# Add user to gamemode group
users.users.${username}.extraGroups = [ "gamemode" ];
}