all repos — nixfiles @ 9497d7334faf9716dd23985bd42022f922c87eda

System and user configuration, managed by nix and home-manager

prefect: use UEFI boot loader instead of GRUB's os-prober
Alan Pearce alan@alanpearce.eu
Thu, 16 Jun 2022 12:14:01 +0200
commit

9497d7334faf9716dd23985bd42022f922c87eda

parent

f74e49f2e2572c3ddba6db33b8dd455a5958276b

2 files changed, 3 insertions(+), 4 deletions(-)

jump to
M system/prefect.nixsystem/prefect.nix
@@ -42,8 +42,7 @@ Option "MetaModes" "2560x1440_120 +0+0 { ForceFullCompositionPipeline = On }"     Option "AllowIndirectGLXProtocol" "off"
     Option "TripleBuffer" "on"
   '';
-  boot.loader.timeout = 3;
-  boot.loader.grub.default = 2; # Default to Windows
+  boot.loader.grub.useOSProber = false;
 
   boot.kernelPackages = pkgs.linuxPackages_zen;
   boot.extraModulePackages = with config.boot.kernelPackages; [
M system/settings/hardware/grub2.nixsystem/settings/hardware/grub2.nix
@@ -1,4 +1,4 @@-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
 
 { boot.loader = {
     grub = {
@@ -7,7 +7,7 @@ splashImage = null;       version = 2;
       device = "nodev";
       efiSupport = true;
-      useOSProber = true;
+      useOSProber = lib.mkDefault true;
     };
     efi.canTouchEfiVariables = true;
   };