AMD and NVidia now use the same standard, which is PRIME for handoff and automatic shutdown using Runtime PM, and if needed muxes are handled by the vga-switcheroo.
On the latest NVidia/AMD hardware, no configuration should be required, unless you try to use Wayland on NVidia.
Unfortunately on NVidia you really need the latest hardware, both on the GPU and CPU side. If you do, it should generally "just work". Of course Linux is Linux and it might not.