hyperhive/nix/templates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 8a97277f20 fix(#540): pin weston socket + inject WAYLAND_DISPLAY globally
Services started by systemd in a gui-enabled container didn't have
WAYLAND_DISPLAY set, so Wayland clients couldn't find the compositor.
libwayland would fall back to a headless display or error out, leaving
apps running invisibly while the VNC session showed a blank weston
desktop (the double-screen problem).

Fix in weston-vnc.nix:
- Pass --socket=wayland-0 to weston so the socket name is
  deterministic (weston normally picks any free wayland-N name).
- Set WAYLAND_DISPLAY=wayland-0 and XDG_RUNTIME_DIR=/run/user/0 as
  global environment.variables gated on hyperhive.gui.enable, so
  every service in the container inherits them automatically.
- Update gui.json to include wayland_display for tooling that reads it.

Update docs/gotchas.md with the rationale and pointer to #540.
2026-05-31 22:59:46 +02:00
..
agent-base.nix nix/templates: actually collapse agent-base + manager to role shims (#671 fixup) 2026-05-31 00:07:55 +02:00
harness-base.nix harness-base: pin hive-dashboard-links doc ref to section anchor (argus 🟡 on #823) 2026-05-31 16:14:38 +02:00
manager.nix nix/templates: actually collapse agent-base + manager to role shims (#671 fixup) 2026-05-31 00:07:55 +02:00
weston-vnc.nix fix(#540): pin weston socket + inject WAYLAND_DISPLAY globally 2026-05-31 22:59:46 +02:00