The nix-gl-installer
addresses the "OpenGL problem" on Nix by installing a user-space driver into /run/opengl-driver
. It has been tested on NVIDIA and Intel GPUs.
Note
Running this script with root privileges may lead to driver detection failure. Please execute it with user privileges.
Execute the following commands to download and run the nix-gl-installer
:
curl -L https://raw.githubusercontent.com/Pylgos/nix-gl-installer/main/nix-gl-installer -o nix-gl-installer
bash ./nix-gl-installer
To remove the installed nix-gl-installer
, run the following command:
/opt/nix-gl-installer/nix-gl-installer uninstall
If auto-activation was not enabled during installation, you need to activate it on every startup with the following command:
/opt/nix-gl-installer/nix-gl-installer activate
This script is heavily inspired by the following projects.