I'm interested in the relation between the probability distribution $p_i$ over states of a system on the one side and the density of states $\rho(\eta)$ of its environment. (Meaning, $\int_{\eta_a}^{\eta_b} \rho(\eta) ~ \mathrm{d} \eta$ is the number of environment states with energies in the interval $[\eta_a, \eta_b]$.)
If the whole (system + environment) is energetically closed ("isolated") with a total energy $E = e + \eta$, but system and environment are in thermal equilibrium (i.e. the whole is described by the microcanonical ensemble), then it holds $$ p_i = \frac{ \rho(E - e_i) }{ \sum_i \rho(E - e_i) }. $$
This means, the probability distribution over states of the system is determined by
a) something that only characterizes the energetic structure of the system, the $e_i$s
b) something that only characterizes the energetic structure of the environment, $\rho(\eta)$, and
c) the total energy $E$.
This relation holds generally, for arbitrarily small or large systems and/or environments. Please note that we have not yet taken any limits!
If we now consider the thermodynamic limit, i.e. an environment composed of an infinite number of subsystems, the probability distribution $p_i$ over states of the system becomes the Boltzmann–Gibbs-distribution (aka canonical ensemble) $$ p_i = \frac{ \exp(- \beta ~ e_i) }{ \sum_i \exp(- \beta ~ e_i) }, $$ where the sum in the denominator is called the partition function. Using the first relation above, this distribution could now be interpreted as corresponding to a limiting density of states of the environment of the form $$ \rho(\eta) \propto \exp( \beta \eta ) $$ which characterizes the "infinite environment". However, the expression refers to the parameter $\beta$ of the Boltzmann–Gibbs distribution, which represents the temperature and depends on the total energy $E$ (per subsystem). Whereas in the finite case $E$ only serves to connect $\rho(\eta)$ and $p_i$, it here defines $\rho(\eta)$ itself.
To me this suggests that it does not make sense to characterize an infinite environment by a density of states — but maybe there's some way around this? Or is there a mistake in the derivation somewhere else?