From d78de94f9416a302000b33061a86969acb544dfc Mon Sep 17 00:00:00 2001 From: Hermes Date: Sun, 10 May 2026 22:15:02 -0400 Subject: [PATCH] feat: add NixOS build CI for infra PRs --- .gitea/workflows/build-nixos.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build-nixos.yml diff --git a/.gitea/workflows/build-nixos.yml b/.gitea/workflows/build-nixos.yml new file mode 100644 index 0000000..92c0a94 --- /dev/null +++ b/.gitea/workflows/build-nixos.yml @@ -0,0 +1,32 @@ +name: Build NixOS config +on: + pull_request: + branches: [ master ] + paths: + - '**.nix' + - 'flake.lock' + - 'secrets/**' + - 'hosts/**' + - 'modules/**' + push: + branches: [ master ] + paths: + - '**.nix' + - 'flake.lock' + - 'secrets/**' + - 'hosts/**' + - 'modules/**' + +jobs: + build: + runs-on: nixos-builder + steps: + - name: Checkout + run: | + git clone -b "${{ github.head_ref || github.ref_name }}" \ + https://gitea:${{ secrets.GITHUB_TOKEN }}@code.lazyworkhorse.net/gortium/infra.git . + git log --oneline -3 + + - name: Build NixOS config (lazyworkhorse) + run: | + nh os build .#lazyworkhorse 2>&1