From 7c5bd6ccc992ce28e32b83449adf6571a1e33b56 Mon Sep 17 00:00:00 2001 From: Marcus Huntemann Date: Mon, 26 Aug 2024 20:23:33 +0000 Subject: [PATCH] revert runner back to native --- .gitea/workflows/validate-nixos-config.yml | 28 +++++++++++++++------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/validate-nixos-config.yml b/.gitea/workflows/validate-nixos-config.yml index 720c40f..c8eb2b0 100644 --- a/.gitea/workflows/validate-nixos-config.yml +++ b/.gitea/workflows/validate-nixos-config.yml @@ -8,15 +8,25 @@ on: branches: - main # Adjust this to match your main branch name +env: + PATH: /run/current-system/sw/bin:$PATH + jobs: - test: - runs-on: ubuntu-latest - container: - image: ubuntu - options: --cap-add=NET_RAW --cap-add=NET_ADMIN + validate: + runs-on: native steps: - - name: Install and run ping + - name: Debug environment run: | - cat /etc/resolv.conf - apt-get update && apt-get install -y iputils-ping - ping -c 4 google.com + echo $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" \ No newline at end of file