NixOS-Config/modules/system/devices/boot/extlinux/default.nix

19 lines
440 B
Nix
Raw Normal View History

{ lib, config, ... }:
2024-09-22 14:46:51 -04: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
};
}