Install free and non-free rpmfusion
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
Install drivers
dnf install xorg-x11-drv-nvidia akmod-nvidia dnf install xorg-x11-drv-nvidia-cuda dnf update -y
Reboot
reboot
You may need to set the DPI settings. See here for more details.