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

**URL:** https://discourse.nixos.org/t/design-discussion-about-nixgl-opengl-cuda-opencl-wrapper-for-nix/2453
**Category:** Development
**Created:** [March 19, 2019, 10:36am UTC](https://discourse.nixos.org/t/design-discussion-about-nixgl-opengl-cuda-opencl-wrapper-for-nix/2453 "2019-03-19T10:36:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Mic92](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mic92/32/5265_2.png) [@Mic92](https://discourse.nixos.org/u/Mic92)
#### Post date: [March 19, 2019, 10:47am UTC](https://discourse.nixos.org/t/design-discussion-about-nixgl-opengl-cuda-opencl-wrapper-for-nix/2453/2 "2019-03-19T10:47:49Z")

</div>

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.

---

_[View the full topic](https://discourse.nixos.org/t/design-discussion-about-nixgl-opengl-cuda-opencl-wrapper-for-nix/2453)._
