2024-03-02 23:15:51 +01:00
|
|
|
{pkgs, ...}: {
|
2023-11-28 23:24:43 +01:00
|
|
|
# Enable OpenGL
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
2024-03-02 23:15:51 +01:00
|
|
|
extraPackages = with pkgs; [];
|
2023-11-28 23:24:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
__GL_LOG_MAX_ANISO = "0";
|
|
|
|
__GL_SHADER_DISK_CACHE = "1";
|
|
|
|
__GL_SYNC_TO_VBLANK = "0";
|
|
|
|
__GL_THREADED_OPTIMIZATIONS = "1";
|
|
|
|
__GL_VRR_ALLOWED = "1";
|
2024-03-02 23:15:51 +01:00
|
|
|
# MESA_LOADER_DRIVER_OVERRIDE="zink";
|
|
|
|
# FLATPAK_GL_DRIVERS="mesa-git";
|
2023-11-28 23:24:43 +01:00
|
|
|
};
|
|
|
|
}
|