mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
set windows boot entry to static value
This commit is contained in:
parent
e59e776f15
commit
cef046b235
1 changed files with 15 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, user, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -17,22 +17,25 @@
|
||||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader = { efi = {
|
boot.loader = {
|
||||||
canTouchEfiVariables = true; efiSysMountPoint = "/boot";
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
efiSysMountPoint = "/boot";
|
||||||
};
|
};
|
||||||
grub = {
|
grub = {
|
||||||
devices = [ "nodev" ];
|
devices = [ "nodev" ];
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
useOSProber = true;
|
useOSProber = false;
|
||||||
# extraEntries = ''
|
extraEntries = ''
|
||||||
# menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows
|
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-364F-BE7A' {
|
||||||
# --class os $menuentry_id_option 'osprober-efi-364F-BE7A' {
|
insmod part_gpt
|
||||||
# insmod part_gpt insmod fat search --no-floppy --fs-uuid
|
insmod fat
|
||||||
# --set=root 364F-BE7A chainloader
|
search --no-floppy --fs-uuid --set=root 364F-BE7A
|
||||||
# /efi/Microsoft/Boot/bootmgfw.efi
|
chainloader /efi/Microsoft/Boot/bootmgfw.efi
|
||||||
# }
|
}
|
||||||
# '';
|
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue