Summary
Add a CI workflow that validates the flake on every push and PR. This catches broken inputs, syntax errors, and evaluation failures before they reach users.
Proposed workflow
- Trigger: push to
main, pull requests
- Steps: install Nix (Determinate Systems action), run
nix flake check
- Optional: scheduled weekly run to catch upstream breakage
Example
name: CI
on: [push, pull_request]
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: nix flake check
Summary
Add a CI workflow that validates the flake on every push and PR. This catches broken inputs, syntax errors, and evaluation failures before they reach users.
Proposed workflow
main, pull requestsnix flake checkExample