23 lines
590 B
Nix
23 lines
590 B
Nix
{ lib, config, ... }: {
|
|
flake.nixosModules.boot = { config, ... }: {
|
|
options = {
|
|
dualBoot = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = "wether to enable windows boot entry to limine or not";
|
|
};
|
|
};
|
|
config.boot.loader = {
|
|
efi.canTouchEfiVariables = true;
|
|
limine = {
|
|
style.wallpapers = [ ];
|
|
enable = true;
|
|
extraEntries = lib.mkIf config.dualBoot ''
|
|
/Windows 11
|
|
protocol: efi_boot_entry
|
|
entry: Windows Boot Manager
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|