Moduls/Bootloader: Add lanzaboote option
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
@ -31,5 +32,20 @@ in {
|
|||||||
device = bootloader.grub.bootDevice;
|
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";
|
||||||
|
};
|
||||||
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
type = lib.types.enum [
|
type = lib.types.enum [
|
||||||
"grub"
|
"grub"
|
||||||
"systemd-boot"
|
"systemd-boot"
|
||||||
|
"lanzaboote"
|
||||||
];
|
];
|
||||||
description = "What boot loader to use";
|
description = "What boot loader to use";
|
||||||
example = "systemd-boot";
|
example = "systemd-boot";
|
||||||
|
Reference in New Issue
Block a user