rpmfusion has a nice guide to get the latest Nvidia proprietary drivers from rawhide, on an otherwise stable system.
This doesn’t seem to work on an rpm-ostree system, as far as I can tell.
I add the copr, install the rpmfusion-nonfree-release-rawhide, reboot,
replace installed drivers with rpm-ostree uninstall akmod-nvidia xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-cuda-libs --install=akmod-nvidia --install=xorg-x11-drv-nvidia-cuda --install=xorg-x11-drv-nvidia-cuda-libs.
That just reinstalls the same drivers that was already available in non-rawhide.
Same if I first uninstall, reboot and then install.
I don’t think rpmfusion has a separate repo for rawhide. Thus you either install the released drivers (with those for F39 being the latest) or don’t install them at all. Once a release version is branched from rawhide then rpmfusion seems to provide the repo for that branch & beta.
I am not sure what your goal may be in trying to find a driver that is newer than the already tested and released version. There is an rpmfusion-nonfree-updates-testing repo where the newer drivers are placed for testing before final release when driver versions are updated.
Note that the guide you linked seems it was last updated about 4 years ago and is somewhat outdated.
This is the index for rpmfusion rawhide, you can find it by scrolling down on the rpmfusion homepage.
My goal is to play games; specifically Cyberpunk 2077 and emulated Tears of The Kingdom, on an external screen, on wayland. The newest driver (545.29) is said to have considerable improvements in this regard, as well as support for night light on wayland. Related Phoronix article.
I’m more than willing to use untested drivers to get this functionality, as it’s something I’ve waited almost two years for.
I don’t have an rpmfusion user account, so I can’t see when specific sections of the Nvidia HowTo were edited last; but I can see that the Nvidia HowTo as a whole was last edited on April 24th this year
The rawhide repo you installed is disabled by default. rpm-ostree has no equivalent to dnf’s --enablerepo, and it really cant, conceptually.
You’d need to enable that repo by editing /etc/yum.repos.d/rpmfusion-nonfree-rawhide.repo to set enabled=1 in the first section. Enabling the entire repo is probably a bad idea, so you can try adding something like:
includepkgs=akmod-nvidia,xorg-x11-drv-nvidia*
in that same section. You may need to extend that list. I’m also not 100% certain that includepkgs will be honored by rpm-ostree via libdnf.
That driver has not yet been included at rpmfusion, though I would expect it soon.
Updates for testing usually show up in rpmfusion-nonfree-updates-testing before they are pushed to rpmfusion-nonfree-updates.