complete restructure

This commit is contained in:
Melvin Ragusa
2026-02-04 22:53:00 +01:00
parent d516c95d65
commit c4cd70fd20
43 changed files with 985 additions and 1229 deletions

View File

@@ -0,0 +1,8 @@
# modules/gaming/default.nix
{
imports = [
./steam.nix
./gamemode.nix
./wine.nix
];
}

View File

@@ -0,0 +1,38 @@
# modules/gaming/gamemode.nix
# Gaming performance optimizations
{
config,
pkgs,
lib,
...
}:
{
programs.gamemode = {
enable = true;
enableRenice = true;
settings = {
general = {
renice = 10;
softrealtime = "auto";
inhibit_screensaver = 1;
};
gpu = {
apply_gpu_optimisations = "accept-responsibility";
gpu_device = 0;
amd_performance_level = "high";
};
};
};
boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 524288;
"vm.swappiness" = 10;
"vm.vfs_cache_pressure" = 50;
};
environment.systemPackages = with pkgs; [
gamemode
gamescope
];
}

23
modules/gaming/steam.nix Normal file
View File

@@ -0,0 +1,23 @@
# modules/gaming/steam.nix
# Steam and Proton configuration
{
config,
pkgs,
lib,
...
}:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
};
hardware.steam-hardware.enable = true;
}

23
modules/gaming/wine.nix Normal file
View File

@@ -0,0 +1,23 @@
# modules/gaming/wine.nix
# Wine, launchers, and controller support
{
config,
pkgs,
lib,
...
}:
{
environment.systemPackages = with pkgs; [
wineWowPackages.stagingFull
winetricks
protontricks
faugus-launcher
lutris
heroic
];
services.udev.packages = with pkgs; [
game-devices-udev-rules
];
}