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