@@ -53,12 +53,14 @@ let
5353 inherit (args) devices;
5454 inherit (efi) canTouchEfiVariables;
5555 inherit (cfg)
56− version extraConfig extraPerEntryConfig extraEntries forceInstall
56+ version extraConfig extraPerEntryConfig extraEntries forceInstall useOSProber
5757 extraEntriesBeforeNixOS extraPrepareConfig configurationLimit copyKernels
5858 default fsIdentifier efiSupport efiInstallAsRemovable gfxmodeEfi gfxmodeBios;
5959 path = (makeBinPath ([
6060 pkgs.coreutils pkgs.gnused pkgs.gnugrep pkgs.findutils pkgs.diffutils pkgs.btrfs-progs
61− pkgs.utillinux ] ++ (if cfg.efiSupport && (cfg.version == 2) then [pkgs.efibootmgr ] else [])
61+ pkgs.utillinux ]
62+ ++ (optional (cfg.efiSupport && (cfg.version == 2)) pkgs.efibootmgr)
63+ ++ (optionals cfg.useOSProber [pkgs.busybox pkgs.os-prober])
6264 )) + ":" + (makeSearchPathOutput "bin" "sbin" [
6365 pkgs.mdadm pkgs.utillinux
6466 ]);
@@ -265,6 +267,14 @@ in
265267 '';
266268 };
267269
270+ useOSProber = mkOption {
271+ default = false;
272+ type = types.bool;
273+ description = ''
274+ If set to true, append entries for other OSs detected by os-prober.
275+ '';
276+ };
277+
268278 splashImage = mkOption {
269279 type = types.nullOr types.path;
270280 example = literalExample "./my-background.png";