2024-11-04 22:41:38 -05:00
|
|
|
{ lib, config, ... }:
|
2024-09-22 14:46:51 -04:00
|
|
|
{
|
2024-11-04 22:41:38 -05:00
|
|
|
options.system.extlinux = {
|
|
|
|
enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "Enable Lanzaboote and force disable Systemd-boot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.system.extlinux.enable {
|
|
|
|
boot.loader = {
|
|
|
|
generic-extlinux-compatible.enable = true;
|
|
|
|
systemd-boot.enable = lib.mkForce false;
|
|
|
|
grub.enable = lib.mkForce false;
|
|
|
|
};
|
2024-09-22 14:46:51 -04:00
|
|
|
};
|
|
|
|
}
|