I believe there is a hybrid driver profile specifically for this sort of AMD+NVIDIA setup listed under Garuda Hardware Manager.
You can then run applications on the dGPU using the prime-run
wrapper (there are a number of threads on the forum that include how to use this, including with Steam).