Skip to content

Deprecate usage of OpenGL utilties and NixOS options. #141803

@jonringer

Description

@jonringer

The /run/opengl-driver/ directory contains more than just opengl libraries now. It also includes vulkan implementations, machine learning libraries, hardware-accelerated encoding and decoding, opencl implementations, and many others. Directory renaming is now out of scope

This directory is also being used as the way to get access to the host machines gpu drivers. I think it's another source of confusion for many users to have to add addOpenGLRunpath so that they can get a vulkan game / cuda workload / opencl workload to work.

I think we should deprecate this prior to the 21.11 release, and fully move it to something like /run/gpu-driver/ or something more representative of the desired affect.

I would also like if someone specifies a value for services.xserver.videoDrivers, that they would also get the gpu libraries mounted automatically instead of needing to do a separate hardware.opengl-drivers.enable = true;. This was done in 02cef04c8187

cc @ryantm

EDIT: roadmap (2.5 years later... lol):

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancementAdd something new or improve an existing system.6.topic: cudaParallel computing platform and API6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions