Files
nixbox-config/.gitea/workflows/validate-nixos-config.yml
T
mapclyps 5599ef627e
Validate NixOS Config / validate (push) Failing after 1s
add nix to path
2024-08-25 12:43:23 +00:00

31 lines
767 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: Debug environment
run: |
echo $PATH
export PATH=/run/current-system/sw/bin:$PATH
which nix || echo "Nix not found"
- 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"