Files
nixbox-config/.gitea/workflows/validate-nixos-config.yml
T
mapclyps 1f20860006
Validate NixOS Config / validate (push) Failing after 1m56s
add network raw to runner config
2024-08-25 18:00:10 +00:00

38 lines
915 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
env:
NIX_PATH: "nixpkgs=channel:nixos-unstable"
jobs:
validate:
runs-on: nixos
container:
options: --cap-add=NET_RAW --cap-add=NET_ADMIN
steps:
- name: Debug environment
run: |
nix-shell -p nix nodejs-slim which iputils
which nix || echo "nix not found"
which node || echo "node not found"
ping -c 5 google.de
- 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"