aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nix
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:06:00 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:06:00 +0100
commitb159599ece4d6889f8199fb0d079548823671677 (patch)
tree8cee38c630562510a1c3ad7cb65668541ad52d6c /nix
parent2a70112ba148f9adda8076e3027b23a42b314a20 (diff)
downloaddotfiles-b159599ece4d6889f8199fb0d079548823671677.tar.gz
dotfiles-b159599ece4d6889f8199fb0d079548823671677.tar.bz2
dotfiles-b159599ece4d6889f8199fb0d079548823671677.zip
fix(nix,meta): keep imv/wl-mirror/sparrow on pacman (OpenGL context)
Same root cause as ghostty: imv (OpenGL), wl-mirror (EGL) and sparrow (JavaFX/OpenGL) are GL/EGL apps that can't find the system Mesa/DRI driver when built by nix on a non-NixOS host. Remove them from nix/host.nix; add imv + wl-mirror to meta/base.txt (sparrow already lives in meta/btc.txt as sparrow-wallet). Refresh the stale base.txt media comment accordingly.
Diffstat (limited to 'nix')
-rw-r--r--nix/host.nix19
1 files changed, 6 insertions, 13 deletions
diff --git a/nix/host.nix b/nix/host.nix
index 09c3df7..9b594b8 100644
--- a/nix/host.nix
+++ b/nix/host.nix
@@ -86,19 +86,17 @@ in
wtype
wl-clipboard # wl-copy + wl-paste
cliphist # clipboard history (used by cliphist-{text,image} units)
- imv
- wl-mirror
# ── Media control ────────────────────────────────────────────────────────
playerctl # MPRIS over session bus
pulsemixer # TUI for PipeWire/PulseAudio
- # 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.
+ # NOTE: GPU/OpenGL & EGL apps (ghostty, imv, wl-mirror, sparrow) are
+ # intentionally NOT here — they stay on pacman/AUR. 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". On pacman they link against system Mesa.
+ # ghostty/imv/wl-mirror live in meta/base.txt; sparrow in meta/btc.txt.
# ── General CLIs migrated off pacman ──────────────────────────────────────
qrencode
@@ -115,11 +113,6 @@ in
chezmoi
paru
- # ── GUIs ─────────────────────────────────────────────────────────────────
- # Bitcoin wallet. Pulls zulu25 + JavaFX (~300 MB closure) but the AUR
- # build pulled the same JRE anyway.
- sparrow
-
# ── OCR ──────────────────────────────────────────────────────────────────
# Override merges eng + por language data into a single derivation,
# replacing three pacman packages (tesseract, tesseract-data-eng,