2025-01-06 13:50:04 -06:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
environment.systemPackages = [pkgs.sbctl];
|
|
|
|
|
2024-12-30 23:28:20 -06:00
|
|
|
boot = {
|
2025-01-06 13:50:04 -06:00
|
|
|
initrd.systemd = {
|
|
|
|
enable = true;
|
|
|
|
tpm2.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-12-30 23:28:20 -06:00
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
2025-01-06 13:50:04 -06:00
|
|
|
timeout = 1;
|
|
|
|
|
|
|
|
# disable systemd-boot in favor of lanzaboote
|
|
|
|
systemd-boot.enable = lib.mkForce false;
|
2024-12-27 16:44:03 -06:00
|
|
|
};
|
|
|
|
};
|
2025-01-06 13:50:04 -06:00
|
|
|
|
|
|
|
boot.lanzaboote = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
pkiBundle = "/etc/secureboot";
|
|
|
|
configurationLimit = 3;
|
|
|
|
};
|
2024-12-27 16:44:03 -06:00
|
|
|
}
|