From 9497d7334faf9716dd23985bd42022f922c87eda Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 16 Jun 2022 12:14:01 +0200 Subject: prefect: use UEFI boot loader instead of GRUB's os-prober --- system/prefect.nix | 3 +-- system/settings/hardware/grub2.nix | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/system/prefect.nix b/system/prefect.nix index 122411b2..186c5b97 100644 --- a/system/prefect.nix +++ b/system/prefect.nix @@ -42,8 +42,7 @@ 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; [ diff --git a/system/settings/hardware/grub2.nix b/system/settings/hardware/grub2.nix index e0043692..cd1fd619 100644 --- a/system/settings/hardware/grub2.nix +++ b/system/settings/hardware/grub2.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { boot.loader = { grub = { @@ -7,7 +7,7 @@ version = 2; device = "nodev"; efiSupport = true; - useOSProber = true; + useOSProber = lib.mkDefault true; }; efi.canTouchEfiVariables = true; }; -- cgit 1.4.1