Files
nixbox-config/.gitea/workflows/validate-nixos-config.yml
T
mapclyps be528f1724
Validate NixOS Config / validate (push) Waiting to run
fix container and entry point
2024-08-24 16:06:37 +00:00

27 lines
738 B
YAML

name: Validate NixOS Config
on:
push:
branches:
- main # Adjust this to match your main branch name
pull_request:
branches:
- main # Adjust this to match your main branch name
jobs:
validate:
runs-on: nixos # This assumes you have a runner with the "flakes-action" label
container:
image: nixos/nix:latest
entrypoint: ["/etc/gitea-runner-entrypoint.sh"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate NixOS configuration
run: |
nix flake check
nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run
env:
NIX_CONFIG: "experimental-features = nix-command flakes"