Design discussion about nixGL (OpenGL / Cuda / OpenCL wrapper for nix)

I think it would also make sense to have a home-manager module. Home-manager already provides a way to maintain session variables, so exporting LD_LIBRARY_PATH should be easy. As it maintains a single nix profile just as NixOS you should not have the problem of multiple nixpkgs versions as long everything is installed through home-manager. Your detection script might however require some impurity if you want to automatically detect the right version.

1 Like