laptop: add extra boot params, remove old boot entries

This commit is contained in:
Lgmrszd 2025-03-10 21:43:58 +04:00
parent 15f2eb9eb5
commit b18f341935
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 1 additions and 26 deletions

View file

@ -34,32 +34,6 @@ in
efiInstallAsRemovable = true;
extraPerEntryConfig = "acpi ($drive1)//dsdt.aml";
# useOSProber = true;
extraEntries =
''
menuentry 'Windows 10' --class windows --class os {
insmod part_gpt
insmod fat
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 8D94-2A4E
else
search --no-floppy --fs-uuid --set=root 8D94-2A4E
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Ventoy' {
insmod part_gpt
insmod fat
# set root='hd0,gpt4'
# if [ x$feature_platform_search_hint = xy ]; then
# search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 BDAD-470D
# else
# search --no-floppy --fs-uuid --set=root BDAD-470D
# fi
search --no-floppy --fs-uuid --set=root BDAD-470D
chainloader /EFI/BOOT/BOOTX64.EFI
}
'';
};

View file

@ -16,6 +16,7 @@ in
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "ahci" "nvme" "usbhid" "uas" "usb_storage" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelParams = [ "intel_idle.max_cstate=4" "ahci.mobile_lpm_policy=1" ];
boot.extraModulePackages = [ ];
fileSystems."/" =