diff options
| author | 2026-06-05 11:06:00 +0100 | |
|---|---|---|
| committer | 2026-06-05 11:06:00 +0100 | |
| commit | 2a70112ba148f9adda8076e3027b23a42b314a20 (patch) | |
| tree | c101e07610ba99a6604fc4d46049cb67f5c84bcf | |
| parent | 8bd9b4b1dde1274b5f23171610eed7c3396dad96 (diff) | |
| download | dotfiles-2a70112ba148f9adda8076e3027b23a42b314a20.tar.gz dotfiles-2a70112ba148f9adda8076e3027b23a42b314a20.tar.bz2 dotfiles-2a70112ba148f9adda8076e3027b23a42b314a20.zip | |
fix(nix,meta): keep ghostty on pacman to fix missing OpenGL context
ghostty is a GPU/OpenGL terminal. Nix-built GL apps on a non-NixOS host
can't locate the system Mesa/DRI driver (FHS /usr/lib drivers don't match
nix's search paths), so the nix-migrated ghostty failed to start with
"missing OpenGL context". Move it back to meta/base.txt (pacman) so it
links against system Mesa. Same caveat flagged for imv/wl-mirror/sparrow.
| -rw-r--r-- | meta/base.txt | 6 | ||||
| -rw-r--r-- | nix/host.nix | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/meta/base.txt b/meta/base.txt index a92243a..8d82fb3 100644 --- a/meta/base.txt +++ b/meta/base.txt @@ -94,10 +94,14 @@ woff2-font-awesome # --- wayland session --- # Compositor (ships /usr/share/wayland-sessions/sway.desktop — login-manager # coupled, must stay on pacman). The user-leaf session tools — waybar, -# fuzzel, wofi, mako, swayidle, swayr, inhibridge, bemoji, ghostty, grim, +# fuzzel, wofi, mako, swayidle, swayr, inhibridge, bemoji, grim, # slurp, wf-recorder, wtype, wl-clipboard, cliphist, imv, wl-mirror, wob, # poweralertd, playerctl, pulsemixer — now come from nix/host.nix. sway +# ghostty: GPU/OpenGL terminal. Kept on pacman (not nix/host.nix) because +# nix-built GL apps on a non-NixOS host can't find the system Mesa/DRI +# driver and die with "missing OpenGL context". +ghostty xdg-desktop-portal-wlr xdg-desktop-portal-gtk qt5-wayland diff --git a/nix/host.nix b/nix/host.nix index 64a0555..09c3df7 100644 --- a/nix/host.nix +++ b/nix/host.nix @@ -93,8 +93,12 @@ in playerctl # MPRIS over session bus pulsemixer # TUI for PipeWire/PulseAudio - # ── Terminal ───────────────────────────────────────────────────────────── - ghostty + # NOTE: ghostty is intentionally NOT here — it is a GPU/OpenGL terminal. + # Nix-built GL apps on a non-NixOS host can't locate the system Mesa/DRI + # driver (the FHS /usr/lib drivers don't match nix's search paths) and + # fail at startup with "missing OpenGL context". It stays on pacman + # (meta/base.txt) so it links against the system Mesa. The same caveat + # applies to other GL/EGL apps (imv, wl-mirror, sparrow) — see base.txt. # ── General CLIs migrated off pacman ────────────────────────────────────── qrencode |
