all repos — nixfiles @ a7c1510db4e6b8876eae2714cc541b4adb0fb8f9

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

prefect: add GRUB entry for Windows
Alan Pearce alan@alanpearce.eu
Mon, 20 Jun 2022 16:25:14 +0200
commit

a7c1510db4e6b8876eae2714cc541b4adb0fb8f9

parent

9d916eb4c365e57a938af8b8ecbcd306f2b0ebae

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M system/prefect.nixsystem/prefect.nix
@@ -43,6 +43,11 @@ Option "AllowIndirectGLXProtocol" "off"     Option "TripleBuffer" "on"
   '';
   boot.loader.grub.useOSProber = false;
+  boot.loader.grub.extraEntries = ''
+    menuentry "Windows" {
+      chainloader ($drive1)//EFI/Microsoft/Boot/bootmgfw.efi
+    }
+  '';
 
   boot.kernelPackages = pkgs.linuxPackages_zen;
   boot.extraModulePackages = with config.boot.kernelPackages; [