nixos/modules/system/core/boot.nix
2026-10-18 12:32:12 +02:00

22 lines
514 B
Nix

{ ... }: {
flake.nixosModules.boot = {
options = {
dualBoot = lib.mkOption {
type = lib.types.bool;
default = false;
description = "wether to enable windows boot entry to limine or not";
};
};
boot.loader = {
efi.canTouchEfiVariables = true;
limine = {
enable = true;
extraEntries = lib.mkIf dualBoot ''
/Windows 11
protocol: efi_boot_entry
entry: Windows Boot Manager
'';
};
};
};
}