From 8b676203e7b6182a8761d0ba1f466ea6f9b60b55 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Tue, 29 Jul 2025 12:15:36 -0700 Subject: [PATCH] [live-usb] Add a build script --- build-liveusb.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 build-liveusb.sh diff --git a/build-liveusb.sh b/build-liveusb.sh new file mode 100755 index 0000000..f0c98c1 --- /dev/null +++ b/build-liveusb.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# Build Live USB ISO from flake configuration +# Creates an uncompressed ISO suitable for Ventoy and other USB boot tools + +set -e + +echo "Building Live USB ISO..." +nix build .#nixosConfigurations.live-usb.config.system.build.isoImage --show-trace + +if [ -f "./result/iso/"*.iso ]; then + iso_file=$(ls ./result/iso/*.iso) + echo "✅ Build complete!" + echo "📁 ISO location: $iso_file" + echo "💾 Ready for Ventoy or dd to USB" +else + echo "❌ Build failed - no ISO file found" + exit 1 +fi \ No newline at end of file