add windows entry in gaming pc
This commit is contained in:
+20
-2
@@ -9,8 +9,26 @@
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.systemd-boot.graceful = true;
|
||||
boot.loader.systemd-boot = {
|
||||
enable = true;
|
||||
graceful = true;
|
||||
windows = {
|
||||
"windows" =
|
||||
let
|
||||
# To determine the name of the windows boot drive, boot into edk2 first, then run
|
||||
# `map -c` to get drive aliases, and try out running `FS1:`, then `ls EFI` to check
|
||||
# which alias corresponds to which EFI partition.
|
||||
boot-drive = "FS0";
|
||||
in
|
||||
{
|
||||
title = "Windows";
|
||||
efiDeviceHandle = boot-drive;
|
||||
sortKey = "y_windows";
|
||||
};
|
||||
};
|
||||
edk2-uefi-shell.enable = true;
|
||||
edk2-uefi-shell.sortKey = "z_edk2";
|
||||
};
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Kernel
|
||||
|
||||
Reference in New Issue
Block a user