Jump to content

Nixpkgs with OpenGL on non-NixOS: Difference between revisions

From NixOS Wiki
imported>Colemickens
quickly introduce summary page
 
Ccd (talk | contribs)
Update the list of options and add a comparison table.
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
Using these applications outside of NixOS requires the use of a wrapper.
Using these applications outside of NixOS requires the use of a wrapper.


== Wrappers ==
== Solutions ==


* https://github.com/guibou/nixGL
{| class="wikitable"
  NixGL is known to work with KVM virtio gpu accelerated graphics
! Driver Support
* https://github.com/deepfire/nix-install-vendor-gl
! [https://github.com/nix-community/nixGL NixGL]
  Tested with NVIDIA on some Ubuntu variants
! [https://github.com/numtide/nix-gl-host/ nix-gl-host]
 
! [https://github.com/soupglasses/nix-system-graphics nix-system-graphics]
== Context ==
|-
 
|AMD (mesa)
* https://github.com/NixOS/nixpkgs/issues/9415
| style="text-align:center;" | ✅
| style="text-align:center;" | ❌
| style="text-align:center;" | ✅
|-
|Intel (mesa)
| style="text-align:center;" | ✅
| style="text-align:center;" | ❌
| style="text-align:center;" | ✅
|-
|Nvidia (nouveau)
| style="text-align:center;" | ✅
| style="text-align:center;" | ❌
| style="text-align:center;" | ✅
|-
| Nvidia (proprietary)
| style="text-align:center;" | ✅
| style="text-align:center;" | ✅
| style="text-align:center;" | ⚠️ Must be manually set to match OS driver version
|-
!Functionality
!
!
!
|-
| Graphical programs from nix
| colspan="2" style="text-align:center;" | ⚠️ Must be manually wrapped
| style="text-align:center;" | ✅
|-
| Graphical programs from host (non-nix)
(''e.g.'' launch non-nix web browser from nixpkgs#kitty)
| colspan="2" style="text-align:center;" | ❌ Broken
| style="text-align:center;" | ✅
|-
| License
| style="text-align:center;" | ❌ None
| style="text-align:center;" | Apache-2.0
| style="text-align:center;" | MIT
|}
[[Category:Video]]

Latest revision as of 05:49, 21 May 2025

Applications in `nixpkgs` handle OpenGL in a certain way. Using these applications outside of NixOS requires the use of a wrapper.

Solutions

Driver Support NixGL nix-gl-host nix-system-graphics
AMD (mesa)
Intel (mesa)
Nvidia (nouveau)
Nvidia (proprietary) ⚠️ Must be manually set to match OS driver version
Functionality
Graphical programs from nix ⚠️ Must be manually wrapped
Graphical programs from host (non-nix)

(e.g. launch non-nix web browser from nixpkgs#kitty)

❌ Broken
License ❌ None Apache-2.0 MIT