Files
nixos/configuration/modules/gaming.nix
worble 55c0df89fd make nix index shallow
readd distrobox
add ts6-client
setup vscode for  python
2025-06-17 19:20:29 +01:00

40 lines
1.0 KiB
Nix

{ pkgs, ... }:
{
hardware.graphics.enable32Bit = true; # For 32 bit applications
hardware.steam-hardware.enable = true;
programs.gamemode.enable = true;
programs.gamescope = {
enable = true;
# capSysNice = true;
# args = [
# "-H 1080"
# ];
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
gamescopeSession.enable = true;
protontricks.enable = true;
extraCompatPackages = [ pkgs.proton-ge-bin ];
package = pkgs.steam.override {
extraPkgs = pkgs': with pkgs'; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib # Provides libstdc++.so.6
libkrb5
keyutils
];
};
};
programs.cdemu.enable = true; # Remember to add users to the cdrom group for this to work
}