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: | nix --version nh os build .#lazyworkhorse 2>&1