Follow the following instructions:
- Install the C compiler through
sudo dnf group install "C Development Tools and Libraries"
- Install the kernel headers
sudo dnf install kernel-devel
- Download the latest drivers (replace with URL from nvidia website)
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/550.54.14/NVIDIA-Linux-x86_64-550.54.14.run chmod a+x NVIDIA-Linux-x86_64-550.54.14.run sudo ./NVIDIA-Linux-x86_64-550.54.14.run