A flow approach to the generalized Loewner-Nirenberg problem of the $σ_k$-Ricci equation