From f25f878e6dab6d2656c151fca6939ba5594ff194 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 7 Jul 2026 12:10:30 -0700 Subject: [PATCH] fix: restore os-prober for grub windows detection --- nixos/bootloaders/grub.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nixos/bootloaders/grub.nix b/nixos/bootloaders/grub.nix index 2e8db0f6..77e1bad7 100644 --- a/nixos/bootloaders/grub.nix +++ b/nixos/bootloaders/grub.nix @@ -15,13 +15,19 @@ in { 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 { default = null; type = lib.types.nullOr lib.types.str; description = '' Filesystem UUID of the Windows EFI system partition. When set, GRUB - gets an explicit Windows Boot Manager chainload entry and skips - os-prober autodetection. + gets an explicit Windows Boot Manager chainload entry in addition to + any os-prober autodetection. ''; }; @@ -65,7 +71,7 @@ in { memtest86.enable = true; efiSupport = true; device = "nodev"; - useOSProber = cfg.windowsEfiUuid == null; + useOSProber = cfg.useOSProber; configurationLimit = cfg.configurationLimit; timeoutStyle = "menu"; theme = lib.mkIf (cfg.theme != null) (lib.mkDefault cfg.theme);