Try to improve Windows support

This commit is contained in:
Greg Hellings
2023-08-09 12:34:50 -05:00
parent 4df6903bbe
commit ab47464200
+5 -3
View File
@@ -4,10 +4,12 @@
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
#boot.loader.systemd-boot.enable = true; #boot.loader.systemd-boot.enable = true;
boot.loader.grub.device = "/dev/nvme0n1"; boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.grub.useOSProber = true; boot.loader.grub.useOSProber = false;
boot.loader.grub.extraEntries = '' boot.loader.grub.extraEntries = ''
menuentry "Windows" { menuentry "Windows" --class windows --class os {
chainloader (hd0,2)+1 insmod nfts
search --no-floppy --set=root --fs-uuid A41B-5963
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
} }
''; '';
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;