I’m using NixOS Unstable (rev. 16105403bdd8) and Gnome 40. I have a Nvidia GPU using the proprietary driver version 470.42.01. This version has support to XWayland acceleration. But every OpenGL app is not working when running Gnome on Wayland. I have some errors like this one in Steam:
[2021-07-22 21:40:47] Verification complete
Loaded SDL version 2.0.15-6655637
OpenGL GLX extension not supported by display
OpenGL GLX extension not supported by displaysrc/steamUI/Main.cpp (404) : Assertion Failed: Fatal Error: OpenGL GLX extension not supported by display
src/steamUI/Main.cpp (404) : Assertion Failed: Fatal Error: OpenGL GLX extension not supported by display
Installing breakpad exception handler for appid(steam)/version(1626824053)
assert_20210722214047_5.dmp[11219]: Uploading dump (out-of-process)
/tmp/dumps/assert_20210722214047_5.dmp
That is my configuration related to Nvidia:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
modesetting.enable = true;
};
opengl = {
extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
extraPackages32 = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
};
};
systemd.enableUnifiedCgroupHierarchy = false;
}
Is there something I need to activate to make OpenGL apps run over (X)Wayland? Or Nvidia needs to support more thing in its driver?