nix/modules/system/gaming.nix
2025-08-21 23:07:23 -04:00

23 lines
576 B
Nix

{ pkgs, ... }:
{
# Install Steam
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
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
environment.systemPackages = with pkgs; [
gamemode
];
# In your configuration.nix
hardware.opengl = {
enable = true;
};
services.xserver.videoDrivers = [ "nvidia" ];
}