Scorporo sezione boot da configurazione principale

This commit is contained in:
pazpi 2024-09-06 08:08:02 +02:00
parent 47664b9526
commit b5992904e3
2 changed files with 29 additions and 26 deletions

28
hosts/deadbeef/boot.nix Normal file
View file

@ -0,0 +1,28 @@
{ ... }:
{
# Don't use the systemd-boot EFI boot loader.
# Necessary for dual boot Windows
boot.loader.systemd-boot.enable = false;
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
grub = {
enable = true;
devices = [ "nodev" ];
efiSupport = true;
extraEntries = ''
menuentry "Windows" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --set=root FE74-E293
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
'';
};
};
}