Just use Flathub on Fedora for anything proprietary including codecs. Leave dnf/rpm for system software / updates.
Nvidia is pretty simple, you can either enable the driver via the UI or just follow the rpmfusion guide.