Skip to content

Add NixOS eval/build GitHub Actions and unignore .github#21

Merged
moons-14 merged 1 commit into
mainfrom
codex/add-nixos-build-check-action-for-main-prs
Jun 20, 2026
Merged

Add NixOS eval/build GitHub Actions and unignore .github#21
moons-14 merged 1 commit into
mainfrom
codex/add-nixos-build-check-action-for-main-prs

Conversation

@moons-14

Copy link
Copy Markdown
Owner

Motivation

  • Add CI to evaluate and build NixOS configurations from the repository flake to catch breakage early using GitHub Actions.
  • Ensure the workflows are tracked by repository by allowing the .github/ directory through .gitignore.

Description

  • Add /.github/workflows/nixos-eval.yml which discovers hosts with nix eval and runs a per-host matrix job that evaluates the system derivation (.config.system.build.toplevel.drvPath).
  • Add /.github/workflows/nixos-build.yml which discovers hosts with nix eval and runs a per-host matrix job that builds the system with nix build " .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel" and prints build logs.
  • Both workflows install Nix via cachix/install-nix-action@v31 with experimental-features = nix-command flakes and set accept-flake-config = true, and they run on pull_request to main and workflow_dispatch.
  • Update .gitignore to include !.github/ so the new workflow files are committed and not ignored.

Testing

  • No automated tests were executed as part of this change; the new workflows will run automatically on future PRs or when triggered manually via workflow_dispatch.

Codex Task

@moons-14 moons-14 merged commit b50586b into main Jun 20, 2026
6 of 8 checks passed
@moons-14 moons-14 deleted the codex/add-nixos-build-check-action-for-main-prs branch June 20, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant