feat(hecuba): switch to UEFI (and modularize)
check / lint (push) Successful in 6s

This commit is contained in:
hektor committed 2026-11-07 21:56:25 +01:00
1 parent d44463b235
commit 91ab0f9902
3 files changed
+608 -209

No files matched your search

+25 -11
View File
@@ -1,17 +1,31 @@
{ lib, config, ... }:
{
options.bootloader.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
config = lib.mkIf config.bootloader.enable {
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
options.bootloader = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
firmware = lib.mkOption {
default = "uefi";
type = lib.types.enum [
"bios"
"uefi"
];
};
};
config = lib.mkIf config.bootloader.enable (
lib.mkMerge [
(lib.mkIf (config.bootloader.firmware == "uefi") {
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
})
(lib.mkIf (config.bootloader.firmware == "bios") {
boot.loader.grub.enable = true;
})
]
);
}