add windows entry in gaming pc

This commit is contained in:
2025-08-12 02:41:23 +02:00
parent fdc328c050
commit 9a96b3c8e0
+20 -2
View File
@@ -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