Verify the operating-system store
The kernel reads the immutable Nix store through dm-verity. A root hash embedded in the unified kernel image anchors the verification tree.
flowchart LR
sb[Secure Boot<br/>verifies UKI signature] --> uki[Unified kernel image<br/>embeds root hash]
uki --> verity[dm-verity tree<br/>verity partition]
verity --> store[(/nix/store<br/>read-only)]
data[(Data partition: config, credentials<br/>not covered by verity)]
Inspect a booted image
sentinel show version
findmnt /nix/store
lsblk -f
Check the boot identity, the read-only store and the separately mounted data partition. A development VM has a different boot path.
Know what is protected
dm-verity checks the contents of the system store as they are read. Configuration, credentials and certificates live on the writable data filesystem. Protect data at rest with installer encryption. Secure Boot verifies the code and kernel image upstream of the root hash.
Validate the image
nix build .#checks.x86_64-linux.verified-boot -L
The fixture boots the image under QEMU/OVMF and checks the verified system reaches multi-user operation.