From 0826b338d0da4c83bf67c7760f51a7cdec6040d1 Mon Sep 17 00:00:00 2001 From: rogueking Date: Mon, 15 Jun 2026 00:59:32 -0400 Subject: [PATCH] fixing iso --- .gitea/workflows/iso-builder.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/iso-builder.yml b/.gitea/workflows/iso-builder.yml index 0695d39..8973549 100644 --- a/.gitea/workflows/iso-builder.yml +++ b/.gitea/workflows/iso-builder.yml @@ -42,12 +42,13 @@ jobs: download-buffer-size = 200000000 auto-optimise-store = true - - name: Build ${{ matrix.host }} ISO (nixos-rebuild build-image) + - name: Build ${{ matrix.host }} ISO run: | - nixos-rebuild build-image --image-variant iso \ - --flake .#${{ matrix.host }}-iso \ + # Build the ISO directly from the flake's NixOS configuration + nix build --print-out-paths \ + .#nixosConfigurations.${{ matrix.host }}-iso.config.system.build.isoImage \ --out-link result-iso 2>&1 | tee /tmp/nix-build.log - # The .iso file is inside the build result (result-iso is a symlink) + # The .iso file is inside the build result (result-iso is a symlink to the nix store) mkdir -p iso-result ISO_SRC=$(find -L result-iso -name '*.iso' -type f | head -n 1) if [ -z "$ISO_SRC" ]; then