{ inputs, outputs, lib, config, pkgs, ... }: with lib; let cfg = config.roles.games; in { options.roles.games = { enable = mkEnableOption "roles games"; }; config = mkIf cfg.enable { programs = { steam = { enable = true; gamescopeSession = { enable = true; }; # Open ports in the firewall for Steam Remote Play # remotePlay.openFirewall = true; # Open ports in the firewall for Source Dedicated Server # dedicatedServer.openFirewall = true; }; gamemode = { enable = true; }; }; }; }