From b18f341935d042c4aa8decc988c4f442dc96c40c Mon Sep 17 00:00:00 2001 From: Lgmrszd Date: Mon, 10 Mar 2025 21:43:58 +0400 Subject: [PATCH] laptop: add extra boot params, remove old boot entries --- hosts/laptop/configuration.nix | 26 ------------------------- hosts/laptop/hardware-configuration.nix | 1 + 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 9a14dd5..23821d7 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -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 - } - ''; }; diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index 8b69dbb..5cf85d2 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -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."/" =