nvidia/VkPhysicalDevice issues on newly installed nixos

Heyo everyone,
I tried to setup nixos a few days ago and currently got the following issue:

When I try to launch xwaylandvideobridge, I get the following error:

libEGL warning: egl: failed to create dri2 screen
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
ERROR:             ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceCalibrateableTimeDomainsKHR
zsh: IOT instruction (core dumped)  xwaylandvideobridge

The service crashes with the following stack trace (this seems to be the most interesting, all other threads are just waiting on something):

These are my current specs:

OS: NixOS 24.05.20240224.73de017 (Uakari) x86_64 
Host: Gigabyte Technology Co., Ltd. B550 GAMING X 
Kernel: 6.7.5-xanmod1 
Packages: 1036 (nix-system), 226 (nix-user)  
DE: Hyprland (Wayland) 
Terminal: kitty 
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz 
GPU: NVIDIA GeForce RTX 2060

This is my current configuration.nix:

(this is loaded with the following flake: DevStorage.eu | HasteServer)

The error also gets printed into the journal by gnome

Feb 27 22:12:30 nixos org.gnome.Shell.desktop[1739]: ERROR:             ICD associated with VkPhysicalDevice does not support GetPhysicalDeviceCalibrateableTimeDomainsKHR

In there, .mutter-x11-fra also seems to crash:

Feb 27 22:12:30 nixos systemd-coredump[1843]: Process 1825 (.mutter-x11-fra) of user 132 dumped core.

I think this might have something to do with the mesa version (x11 apps on Xwayland unable to start with mesa 24 (#10624) · Issues · Mesa / mesa · GitLab) but I can’t get any mesa version, this is the output of glxinfo -B:
DevStorage.eu | HasteServer

If you have any ideas or even search terms I could search, I’d be very grateful!
Also thanks for reading this long message :slight_smile:

I had the same issue, upgrading to the 550.54.14 NVIDIA driver fixed it for me (confusingly it’s not under production but latest; as of writing) i.e.

# ...
package = config.boot.kernelPackages.nvidiaPackages.latest;
# ...
1 Like