1

Moduls/Bootloader: Add lanzaboote option

This commit is contained in:
2025-08-16 11:50:16 +02:00
parent 815387a87e
commit 69a685774d
2 changed files with 17 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{
pkgs,
config,
lib,
mylib,
@ -31,5 +32,20 @@ in {
device = bootloader.grub.bootDevice;
};
})
(lib.mkIf (bootloader.loader == "lanzaboote") {
environment.systemPackages = with pkgs; [
sbctl
];
# Lanzaboote replaces systemd-boot
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
# WARN: Make sure to persist this if using impermanence!
pkiBundle = "/var/lib/sbctl";
};
})
]);
}

View File

@ -9,6 +9,7 @@
type = lib.types.enum [
"grub"
"systemd-boot"
"lanzaboote"
];
description = "What boot loader to use";
example = "systemd-boot";