On this page
Install variants
The installer makes two decisions and you make one. It records
all three in a file on the box, modules/install-target.nix. A reinstall
from the same medium repeats them, and a nightly update never undoes them.
How the disk is unlocked
Every box has an encrypted disk. The installer formats it unattended, from a random key it generates. The variants differ in where that key lives at boot.
| Variant | When | What it means |
|---|---|---|
| TPM (the default) | The installer found a TPM 2.0 chip | The key is sealed into the chip. The boot partition carries no secret. The disk on its own, pulled or cloned, is unreadable. The box still boots unattended. |
| Keyfile | No chip, or losos-ctl install --no-tpm | The key sits on the unencrypted boot partition, so the box can boot unattended. Whoever takes the disk has the data. Fine for a VM or a test box. |
The installer prints which one it chose: unlock: TPM or unlock: keyfile in the initrd. The TPM key is not bound to firmware measurements,
on purpose. The box updates its firmware, bootloader and kernel on its own
and has no shell to recover from a lockout. The cost is that a thief who
takes the whole box, chip included, can still boot it. The
security model says so plainly.
TPM and the disk key explains what a box without a chip
gives up, and how to move it to one.
A box never asks for a passphrase at boot. If yours does, something is wrong; see Stuck at a passphrase prompt.
UEFI or BIOS
This is the only question the installer asks. UEFI gets systemd-boot. BIOS gets GRUB and a 1 MiB boot partition on the first disk. Autodetect picks the mode the stick was booted in, and the menu takes it after 30 seconds, so an unattended boot still installs. UEFI needs the stick itself booted in UEFI mode. On a BIOS-booted stick the installer refuses UEFI before it touches any disk. BIOS is mainly for virtual machines. Under UEFI the stick is signed, and a firmware with the LosOS certificate enrolled verifies it. The installed box's own loader is not signed, so the box needs Secure Boot off. See Secure Boot and signed media.

The three media
| Medium | Size | Use |
|---|---|---|
| Installer ISO | small | The normal one, attached to every release. The target downloads the system it installs. |
| ISO with the full system | large | Carries the built system, so the install copies instead of downloads. Build it yourself. |
| Edge installer ISO | small | The installer ISO prefilled for one edge. It installs by itself, and the disk unlocks with the TPM and that edge. |
| Demo disk image (QCOW2) | large | A preinstalled virtual disk for QEMU or virt-manager. No encryption, no installer. For demos. |
The edge installer ISO
The edge installer is the installer ISO with the disk opened through the edge as a key server. The edge address is fixed when the ISO is built. Boot it and leave it. When the firmware menu times out, the install starts by itself, seals the disk key to the TPM and to that edge, and reboots. Nobody types anything.
On a box with no TPM chip it stops and says why. It does not fall back to the
weaker keyfile unlock. A flag typed onto losos-install outranks the prefill,
so an operator on the phone can still choose differently for one run.
It is not attached to releases. The builder names the edge, so a release copy would carry an edge that is not yours. Build one with:
LOSOS_EDGE_URL=https://edge.example.org nix build --impure \
.#nixosConfigurations.iso-edge.config.system.build.isoImage
Its volume label is LOSOS_EDGE and its file name contains
losos-installer-edge, so you can tell it from the plain stick.
Growing into the rest of the disk
The installer leaves 10 % of the disk unused on purpose. The box can grow into that reserve later without anyone opening the case. The Storage pane's Use the reserve button claims it; see Disk growth.