Build an appliance image
Use the raw image for a UEFI virtual disk or as input to the installer. Use the ISO when you want disk selection and first-boot setup.
Build and locate the image
nix build .#sentinel-image --out-link result-image
find -L result-image -name '*.raw' -type f
flowchart LR
src[Source + flake.lock] --> unsigned[sentinel-image-unsigned]
unsigned -->|development keys| signed[sentinel-image]
signed --> vm[UEFI virtual disk]
signed --> seed[seed-image<br/>cloud import]
signed --> iso[sentinel-iso<br/>installer]
The output includes the ESP, a signed kernel image, the verified store, space for the alternate slot, and a writable data partition. nix build .#sentinel-image-unsigned builds the same image before any signature; see compare the unsigned image.
Warning: Source builds sign with per-build development keys that are not a trust identity: their private keys sit in the builder's world-readable Nix store, so do not enroll them in firmware. Release images are re-signed outside the store with the release identity.
Try it in a VM first
nix run .#vm # disposable configuration session
nix build .#checks.x86_64-linux.verified-boot -L # validate the real image and boot chain
Warning:
nix run .#vm(nixosConfigurations.appliance) is a development VM, not an appliance image. It alone logsadminin on the console automatically and has the KNOWN passwordsentinel, so never reuse it for a real box.
The exported modules (nixosModules.sentinel, nixosModules.applianceImage) set no password and no autologin, and the flashable image asserts at build time that it has neither. To install a persistent evaluation appliance, follow the VM quickstart.
Seed a raw image for a cloud import
A raw or QCOW2 import has no administrator, no address and no cloud-init: the first boot reads appliance.toml and the SSH host key from the data partition (GPT name and ext4 label data). Write them into a copy of the image with the pinned seeding tool:
nix run .#seed-image -- --image result-image/velstra-sentinel_1.0.0.raw \
--config my-appliance.toml --output seeded.raw --qcow2 seeded.qcow2
What the tool does:
- Runs this build's own
sentinel config check. - Refuses a configuration with no way in (no read-write login with an SSH key or password hash, SSH disabled, or no interface) unless
--allow-unreachableis given. - Adds the files to the image's factory filesystem as root-owned files (the configuration and private host key mode 0600). It never modifies the input image.
- Prints the generated host key and its fingerprint (pin it in
known_hosts);--host-keyreuses an existing ed25519 key.
The data partition grows to fill the disk on first boot.
Warning: Name only interfaces the machine has: a configured interface that is missing fails boot health. Interface names follow PCI slot order, so a removed or re-ordered NIC moves every later name. Bind each zoned interface with
hw-id = "<mac>"; the tool andsentinel config checkwarn about zoned interfaces bound by name only.
Install to disk
Choose the installer ISO for interactive disk and RAID selection. Installation erases the selected disks. Review the plan before committing. Install to disk.