{ lib, config, pkgs, ... }: let inherit (lib) mkEnableOption mkIf; cfg = config.horseman.apps.gaming; in { options = { horseman.apps.gaming = { enable = mkEnableOption "Games and things for games"; }; }; config = mkIf cfg.enable { programs.steam = { enable = true; remotePlay.openFirewall = false; # 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 }; }; }