Yeah, its known that setting up an nvidia card is notoriously hard on linux. I believe Linus T had something nice to say about them. But what you're looking for does exist and can be setup with a little bit of tinkering.
Personally, I use NixOS, so I just have to add a few lines of code to my nix flake. Here are the directions
Then you just add an environment variable for the applications you want to run. If you don't use Nix and want to set it up manually, as always the Arch Wiki comes into play. See section 1.3.1.2.
To sum that up, install the nvidia drivers through the package manger, mod probe the kernel, and add some udev rules. You'll need to add those environment variables again for any application you want to use the gpu.
Edit: I forgot to mention its called Nvidia Prime. If you search the distro of your choice plus that it should help.