For months now I have been trying to figure out how to get opengl working on my Intel HD graphics and today I finally made some progress.
Whenever I ran glxinfo
it just gave this error message, no matter what config from the wiki I tried:
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
However, today I found this thread: https://discourse.nixos.org/t/opengl-unusable-on-my-machine/8192
And running the command from the commend indeed makes glxinfo
work:
$ nix run -f channel:nixos-unstable glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
...
However: I have no idea how to make this permanent
I tried overlaying the driver package to a current unstable commit, but the behavior does not change, i.e:
nixpkgs.overlays = [
(self: super:
let
nixpkgs-mesa = builtins.fetchTarball
"https://github.com/nixos/nixpkgs/archive/6616de389ed55fba6eeba60377fc04732d5a207c.tar.gz";
in { mesa_drivers = (import nixpkgs-mesa { }).mesa_drivers; })
];
Is there a common trick to make this work persistently?
My system channel is on 22.05
.
Or is there perhaps another workaround for this issue?