Fedora's GPU support has gotten pretty great.
Using RPMFusion instructions here: https://rpmfusion.org/Howto/CUDA
And then post-install steps here: https://docs.nvidia.com/cuda/archive/12.9.0/cuda-installation-guide-linux/index.html#environment-setup
it is very painless to get Nvidia CUDA Toolkit working on top of RPMFusion-provided GPU and CUDA drivers in Fedora 42.
It wasn't this quick and easy a year ago.