summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2022-06-20 16:25:14 +0200
committerAlan Pearce2022-06-23 22:38:23 +0200
commita7c1510db4e6b8876eae2714cc541b4adb0fb8f9 (patch)
treec5df69b63e84d7b92bcdd84d9f9fca363e348c23
parent9d916eb4c365e57a938af8b8ecbcd306f2b0ebae (diff)
downloadnixfiles-a7c1510db4e6b8876eae2714cc541b4adb0fb8f9.tar.lz
nixfiles-a7c1510db4e6b8876eae2714cc541b4adb0fb8f9.tar.zst
nixfiles-a7c1510db4e6b8876eae2714cc541b4adb0fb8f9.zip
prefect: add GRUB entry for Windows
-rw-r--r--system/prefect.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/prefect.nix b/system/prefect.nix
index d7781785..059eff0c 100644
--- a/system/prefect.nix
+++ b/system/prefect.nix
@@ -43,6 +43,11 @@
     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; [