{ config, lib, pkgs, inputs, ... }:

{
  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;
  };
  programs.gamemode.enable = true;

  # ensure users who need access to this have `cdrom` as `extraGroups`
  programs.cdemu.enable = true;
}
