Files
kiskaadee b38959bb7c chore(nix): add Node 24 and Playwright Chromium devShell
- Provide nodejs_24 and Chromium + chromium-headless-shell + ffmpeg via playwright-driver.selectBrowsers
- Wrap headless browser entrypoints to unset WAYLAND_DISPLAY so SwANGLE/SwiftShader initializes WebGL2 on Wayland hosts without mutating the shell environment
- Export PLAYWRIGHT_BROWSERS_PATH, PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD, PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS, and PLAYWRIGHT_NIX_VERSION
- Add direnv .envrc and ignore .direnv/ and node_modules/

Rationale: Generic Linux Chromium downloads from npx playwright install cannot run on NixOS without FHS shared libraries, and Wayland sessions cause SwANGLE to fail with VK_KHR_wayland_surface unsupported unless WAYLAND_DISPLAY is unset for headless browser processes.
2026-11-01 10:09:35 -05:00

2 lines
10 B
Bash