What problem does it solve?
Playwright's bundled Chromium download relies on apt-get and sudo, which fails on NixOS and pure-Nix hosts. This Skill provides a self-contained Nix setup so an existing Playwright e2e suite can run locally without modifying GitHub Actions CI.
Core Features & Use Cases
- Self-contained
tests/shell.nix: Resolves a pinned nixpkgs-latest input from the parent flake lock and exposes playwright-driver.browsers via PLAYWRIGHT_BROWSERS_PATH.
- Decoupled flake input: Adds an independent
nixpkgs-latest pin so the Playwright browser revision updates on its own cadence, separate from the main nixpkgs.
- Justfile recipe: Provides an
e2e target that enters the nix-shell, installs npm dependencies if missing, and runs the test suite.
- Use Case: A developer on NixOS clones a project with a Playwright suite under
tests/ and needs npm test to work locally without apt-based browser installation.
Quick Start
Set up my existing Playwright e2e tests to run locally on NixOS using a Nix shell and a justfile recipe.