Files
nixbox-config/.gitea/workflows/validate-nixos-config.yml
T
mapclyps 27f43e3047
Validate NixOS Config / validate (push) Failing after 2s
switch to native runner
2024-08-25 00:40:57 +00:00

26 lines
600 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: native
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Validate NixOS configuration
run: |
node --version
nix flake check
nix build .#nixosConfigurations.nixbox.config.system.build.toplevel --dry-run
env:
NIX_CONFIG: "experimental-features = nix-command flakes"