#!/usr/bin/env bash

# Build and run the Nnomarchy Installer VM for testing.

echo "Building Nnomarchy Installer VM..."
nix build .#nixosConfigurations.installerVm.config.system.build.vm

if [ $? -eq 0 ]; then
    echo "Success! Launching Installer VM..."
    ./result/bin/run-nnomarchy-installer-vm
else
    echo "Error: VM build failed."
    exit 1
fi
