Files
Benoit de Chezelles 489972d8c8 nix: Add NixOS-based VMs for live testing in clean desktop env (#7928)
- Separate perSystemOutputs & globalOutputs in flake.nix
  (lots of indent changes!)
- Add NixOS VM configs for Gnome & Plasma testing
- Add section in contrib docs
2026-07-13 21:15:04 +02:00

22 lines
574 B
Nix

{ pkgs, ... }:
{
hardware.graphics = {
enable = true;
extraPackages = [
pkgs.mesa
pkgs.libglvnd # provides libEGL.so.1
];
};
# NOTE: I managed to start the wezterm binary with manual LD patching:
# ```
# find -name 'libEGL.so.1' 2>/dev/null
# LD_LIBRARY_PATH=/nix/store/path/to/libglvnd/lib ./target/debug/wezterm-gui
# ```
# (although I got many error/warning from graphics rendering on start)
# So we patch that in the env directly 👀
environment.sessionVariables = {
LD_LIBRARY_PATH = [ "${pkgs.libglvnd}/lib" ];
};
}