Regenerated
This commit is contained in:
@@ -7,28 +7,39 @@
|
||||
efi.efiSysMountPoint = "/boot";
|
||||
timeout = 5;
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
boot.kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"udev.log_level=3"
|
||||
"rd.systemd.show_status=false"
|
||||
# Sleep / power management
|
||||
"mem_sleep_default=deep" # Use S3 deep sleep, fixes sleep not working
|
||||
"acpi_osi=Linux" # Tell ACPI this is a Linux system
|
||||
"acpi_backlight=native" # Proper backlight control
|
||||
# Intel GPU — fixes screen blinking on sleep/wake
|
||||
"mem_sleep_default=deep"
|
||||
"acpi_osi=Linux"
|
||||
"acpi_backlight=native"
|
||||
# Intel GPU
|
||||
"i915.enable_psr=0"
|
||||
"i915.enable_psr2_sel_fetch=0"
|
||||
# Prevent nvme from waking the system
|
||||
# NVMe
|
||||
"nvme.noacpi=1"
|
||||
];
|
||||
|
||||
boot.extraModprobeConfig = ''
|
||||
options snd_hda_intel power_save=0
|
||||
options snd_hda_codec_realtek fixup=76
|
||||
# REMOVED: fixup=76 has no effect when snd_hda_codec_realtek is blacklisted
|
||||
# If you remove the blacklist below, add it back and test
|
||||
'';
|
||||
|
||||
boot.blacklistedKernelModules = [ "snd_hda_codec_realtek" ];
|
||||
|
||||
boot.consoleLogLevel = 0;
|
||||
#boot.initrd.systemd.enable = true;
|
||||
|
||||
# SUGGESTION: consider enabling initrd systemd — better plymouth integration
|
||||
# and faster boot. Test it — it works well on most modern NixOS setups.
|
||||
boot.initrd.systemd.enable = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
@@ -36,24 +47,29 @@
|
||||
"sd_mod"
|
||||
"rtsx_usb_sdmmc"
|
||||
];
|
||||
hardware.enableAllFirmware = true;
|
||||
|
||||
boot.kernelModules = [
|
||||
"kvm-intel"
|
||||
"asus_wmi" # Asus-specific power/fan/keyboard control
|
||||
"kvm-intel" # QEMU/KVM virtualisation
|
||||
];
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
};
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
boot.plymouth.enable = true;
|
||||
|
||||
hardware.enableAllFirmware = true;
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
# Power management
|
||||
powerManagement.enable = true;
|
||||
|
||||
services.logind.settings.Login = {
|
||||
HandleSleepKey = "ignore";
|
||||
HandleSleepKeyLongPress = "ignore";
|
||||
};
|
||||
services.thermald.enable = true; # Intel thermal management daemon
|
||||
|
||||
services.thermald.enable = true;
|
||||
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
Reference in New Issue
Block a user