On NixOS, I'm tryign to downgrade Mesa from 25.0.1 to 23.3.5, like this: [code] Where…
- User
On NixOS, I'm tryign to downgrade Mesa from 25.0.1 to 23.3.5, like this:
let # Use 'nixpkgs' attribute set as the source for overlays oldNixpkgs = import (builtins.fetchGit { url = "https://github.com/NixOS/nixpkgs.git"; rev = "259981b0af5c285bb3cc7146de1da1b5af92236d"; # Substitute with the correct commit hash }) { }; # Define the overlay to use the old version of Mesa from the old Nixpkgs mesaOverlay = self: super: { mesa = oldNixpkgs.mesa; # This will take the Mesa definition from the specified commit }; inWhere the rev points to a nixpkgs commit that has the correct mesa version. But I get some errors, like: Error: couldn't find RGB GLX visual or fbconfig when running glxinfo
Also xorg log says [ 13.789] (EE) AIGLX error: dlopen of /run/opengl-driver/lib/dri/swrast_dri.so failed (/run/opengl-driver/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory) [ 13.789] (EE) AIGLX error: unable to load driver swrast [ 13.789] (EE) GLX: could not load software renderer
- Assistant
- User
I ran the nix-shell command and glxinfo and got:
server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 Max core profile version: 4.6 Max compat profile version: 4.6 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.2 OpenGL core profile version string: 4.6 (Core Profile) Mesa 25.0.1 OpenGL core profile shading language version string: 4.60 OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.0.1 OpenGL shading language version string: 4.60 OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.0.1 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix, - Assistant
If you're still seeing Mesa 25.0.1 even when you've attempted to downgrade to Mesa 23.3.5 in the , it's possible that the overlay was not set up correctly or the package being pulled is not what you expected. Here's a breakdown to troubleshoot:
- User
No but the local path is checked out to the correct commit, not using overlays. Should I?
- Assistant
If you have already checked out the local path to the correct commit of Nixpkgs that contains the desired version of Mesa (23.3.5) and you're not using overlays, you can directly reference that local path in your Nix environment. If it's set up correctly, it should be able to find the appropriate version of Mesa.
- User
Realistically, what is the easiest way to downgrade mesa version in nixos? I don't mind it being system-wide as I can just revert to old config
- Assistant
- User
What dependencies would be affected? xorg? Do I need to downgrade that as well?
- Assistant