- Separate perSystemOutputs & globalOutputs in flake.nix (lots of indent changes!) - Add NixOS VM configs for Gnome & Plasma testing - Add section in contrib docs
22 lines
574 B
Nix
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" ];
|
|
};
|
|
}
|