fix: restore os-prober for grub windows detection
This commit is contained in:
@@ -15,13 +15,19 @@ in {
|
|||||||
description = "Maximum number of NixOS configurations shown in GRUB.";
|
description = "Maximum number of NixOS configurations shown in GRUB.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useOSProber = lib.mkOption {
|
||||||
|
default = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = "Whether to enable os-prober for detecting other bootable operating systems.";
|
||||||
|
};
|
||||||
|
|
||||||
windowsEfiUuid = lib.mkOption {
|
windowsEfiUuid = lib.mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = lib.types.nullOr lib.types.str;
|
type = lib.types.nullOr lib.types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Filesystem UUID of the Windows EFI system partition. When set, GRUB
|
Filesystem UUID of the Windows EFI system partition. When set, GRUB
|
||||||
gets an explicit Windows Boot Manager chainload entry and skips
|
gets an explicit Windows Boot Manager chainload entry in addition to
|
||||||
os-prober autodetection.
|
any os-prober autodetection.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -65,7 +71,7 @@ in {
|
|||||||
memtest86.enable = true;
|
memtest86.enable = true;
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
useOSProber = cfg.windowsEfiUuid == null;
|
useOSProber = cfg.useOSProber;
|
||||||
configurationLimit = cfg.configurationLimit;
|
configurationLimit = cfg.configurationLimit;
|
||||||
timeoutStyle = "menu";
|
timeoutStyle = "menu";
|
||||||
theme = lib.mkIf (cfg.theme != null) (lib.mkDefault cfg.theme);
|
theme = lib.mkIf (cfg.theme != null) (lib.mkDefault cfg.theme);
|
||||||
|
|||||||
Reference in New Issue
Block a user