Windows that I have autostarting, start. DE is not present. Resolution isn’t right.
Doesn’t help in my case. Adding hardware.nvidia.open = true; still yields aforementioned problem when running KDE in Wayland. Only time that KDE ran in Wayland was with nvidia-open driver.
Can you share your full config? Wayland, nvidia-settings, 6.10 kernel support all should be working on 555.58.02 - I’m running that kernel/driver version too.
The fact that nvidia-settings is missing is very suspicious - the config is dead simple, the only way this doesn’t work is if you never evaluate the nvidia module or explicitly disable it. Since you clearly didn’t do the latter, there’s probably something seriously wrong with your config.
From this line, if services.xserver.videoDrivers does not contain "nvidia", then nvidiaEnabled evaluates to false, thus nvidia_x11 evaluates to null. That’s why nvidia_x11.settings is not installed in the line you referenced.
That said, does nvidia-open in videoDrivers even do anything? Grepping for that string in nixpkgs results in no relevant results. AIUI, the way to enable the open drivers is hardware.nvidia.open, and we’re just dreaming up a new videoDrivers string that doesn’t exist for some reason. Without hardware.nvidia.open you’re missing some important settings anyway, so broken graphics is kinda expected.
You’re right, "nvidia-open" doesn’t seem to be a thing, in which case, nouveau could have been used instead of the open Nvidia drivers since the latter’s config was disabled and that’s why there were no problems with Plasma 6 and Wayland.
I was previously getting some problems with version 550, after a bit of digging in forums I found that 550 drivers were causing the random kernel panicks that I was having for some time, switching to open kernels fixed it for the time being but then I got this problem today when I tried rebuilding, thanks to you its fixed now, cheers!
Otherwise this looks correct. For the record, what is the exact set of problems (including whether nvidia-settings works) you get after a nixos-rebuild boot --use-remote-sudo && systemctl reboot with:
I also force the GBM backend and the GLX library, but I think that’s working around old wlroots bugs:
# Required to run the correct GBM backend for nvidia GPUs on wayland
GBM_BACKEND = "nvidia-drm";
# Apparently, without this nouveau may attempt to be used instead
# (despite it being blacklisted)
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
And finally I set the "nvidia-drm.fbdev=1" kernel arg to work around this bug, but that should have been fixed in the driver/kernel by now.
I don’t seem to set services.xserver.videoDrivers at all in my config, as a side note, I don’t understand how that works… My config checks if it’s in that list to switch the sway flag, though, and that’s definitely working, so I guess it ends up in there by default somehow. Either way, that setting should not be harmful.
Hey, you wanted to see it. I write with intent of only my eyes seeing it.
It’s no longer commented out.
My PC never sleeps, it’s my slave and works 24/7 mining XMR to support the network. I will add it though in case I eventually want it to have a breather.
Let’s forget Wayland for now, I just want my PC to work.
I have another issue. I want to update my NVIDIA drivers from 555.58.02 to 560.35.03, the latest beta.
How do I get the hardware.nvidia.package.sha256_64bit, hardware.nvidia.package.sha256_aarch64, hardware.nvidia.package.openSha256, hardware.nvidia.package.settingsSha256 and hardware.nvidia.package.persistencedSha256?
I’ll make another ticket later for figuring this stuff out on a fresh install of NixOS without my stuff there. We can study how of a mfer Nvidia drivers are there, unless you want this experiment going on my main install.
building the system configuration...
error: builder for '/nix/store/6sz5y9ilgjri7rz9jadncl4c4vi9swyr-nvidia-settings-560.35.03.drv' failed with exit code 2;
last 10 log lines:
> from gtk+-2.x/ctkconfig.h:35,
> from gtk+-2.x/ctkscale.h:23,
> from gtk+-2.x/ctkscale.c:23:
> libXNVCtrlAttributes/NvCtrlAttributes.h:24:10: fatal error: vulkan/vulkan.h: No such file or directory
> 24 | #include <vulkan/vulkan.h>
> | ^~~~~~~~~~~~~~~~~
> compilation terminated.
> make[1]: *** [Makefile:381: _out/Linux_x86_64/gtk3/ctkscale.o] Error 1
> make[1]: Leaving directory '/build/source/src'
> make: *** [Makefile:23: all] Error 2
For full logs, run 'nix log /nix/store/6sz5y9ilgjri7rz9jadncl4c4vi9swyr-nvidia-settings-560.35.03.drv'.
error: 1 dependencies of derivation '/nix/store/qsfv3brndw4p7dfqchdp5zs8bz2zfidm-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yfwbvl18kdq1c38ri8fqxf7bnsah6mzz-unit-coolercontrold.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7q7v32v0pw8yzp6kn1favsraml8vvsz7-nixos-system-nixos-24.05.20241002.5966581.drv' failed to build
I figured out myself that I can use anything and it will spit out the sha256 values for me, but here’s a new problem. I’m losing sanity but I’m not going to use Windows 11.
The only reason I want to update the drivers is due to CS2 frame times and overall performance not being right after the latest update. I thought that updating the drivers might help, but it’s not helping my mental health right now.