Files
nix-config/hosts/idols-aquamarine/secureboot.nix
T
Ryan Yin 72a7a2ae88 feat(aquamarine): revive aquamarine as a two-GPU inference host
The Z890 board and its root SSD move here from `ai`, and the retired VM's name and 192.168.5.101 are reused.

Assisted-by: DeepSeek Harness (deepseek-flash)
2026-10-14 20:15:01 +08:00

31 lines
932 B
Nix

{
pkgs,
lib,
lanzaboote,
...
}:
{
# Secure Boot here reuses the PKI already enrolled on the Z890 board, carried over with the disk
# (./README.md step 3). lanzaboote signs with `pkiBundle` below, so a fresh key set must end up in
# /etc/secureboot — `sbctl create-keys` writes to its own keydir — or the firmware trusts a key the
# UKI was not signed with. New keys also change PCR7, which invalidates a TPM2 LUKS enrollment made
# against the old ones (./README.md step 4).
imports = [
lanzaboote.nixosModules.lanzaboote
];
environment.systemPackages = [
# For debugging and troubleshooting Secure Boot.
pkgs.sbctl
];
# Lanzaboote replaces the systemd-boot module. The generated
# hardware-configuration.nix sets this to true, so force it off.
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
}