Nvidia driver not building on kernel 6.13.4

Unsure if there is a better way, but this is what I did:

(Remove rpm-ostree if you’re not using Kinoite or Silverblue or another Atomic desktop, and replace with dnf - refer to this guide)

sudo rpm-ostree remove akmod-nvidia xorg-x11-drv-nvidia-cuda
systemctl reboot
sudo rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda
systemctl reboot
nvidia-smi

If you’ve blaclisted nouveau in this guide, you might only have one monitor working and a low resolution making everything look big. Ignore this, it will fix after you’ve got your drivers installed again.

If there is a better way to update the drivers by themselves, I’d love to know. My problem with doing that is listed here.

1 Like