{ pkgs, lib, config, ... }: let cfg = config.programs.steam; in { options.programs.steam.extraPkgs = with lib; mkOption { type = types.listOf types.package; default = []; }; config = lib.mkIf cfg.enable { programs.steam.package = pkgs.steam.override { extraPkgs = _: cfg.extraPkgs; }; }; }