add module for gaming

This commit is contained in:
lucy 2026-11-03 15:41:21 +01:00
commit 8e907b1ad4
3 changed files with 27 additions and 1 deletions

View file

@ -11,6 +11,7 @@ let
boot boot
core core
chromium chromium
gaming
easyroam easyroam
nautilus nautilus
packages packages

View file

@ -1,7 +1,6 @@
{ ... }: { { ... }: {
flake.nixosModules.programs = { flake.nixosModules.programs = {
programs.niri.enable = true; programs.niri.enable = true;
programs.steam.enable = true;
programs.direnv.enable = true; programs.direnv.enable = true;
}; };
} }

View file

@ -0,0 +1,26 @@
{
flake.nixosModules.gaming =
{ pkgs, ... }:
{
programs.steam = {
enable = true;
extraCompatPackages = with pkgs; [ proton-ge-bin ];
protontricks.enable = true;
remotePlay.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
programs.gamescope = {
enable = true;
capSysNice = true;
enableWsi = true;
};
programs.gamemode.enable = true;
environment.systemPackages = with pkgs; [
heroic # Epic-Fassung von Rocket League (braucht GE-Proton)
umu-launcher # Proton-Runtime für Heroic / Nicht-Steam-Games
];
};
}