aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--meta/base.txt6
-rw-r--r--nix/host.nix8
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