Using nixGL to fix OpenGL applications on non-NixOS distributions

Sometime ago, I had some issues with OpenGL when running Julia and Makie in NixOS. Found that a, probably not good but, simple way to fix them is setting

hardware.opengl.setLdLibraryPath = true;

in configuration.nix. This is an internal option (which is why it cannot be found in manual) that isn’t supposed to be used on its own.

Leaving it here in case someone searches “fix OpenGL applications on NixOS” since this comes up among the first results.