Files
nixos/configuration/modules/gaming.nix

34 lines
965 B
Nix

{ pkgs, ... }:
{
hardware.graphics.enable32Bit = true; # For 32 bit applications
hardware.steam-hardware.enable = true;
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.gamemode.enable = true;
programs.gamescope.enable = true;
programs.cdemu.enable = true; # Remember to add users to the cdrom group for this to work
}