Regenerated
This commit is contained in:
+435
-419
File diff suppressed because it is too large
Load Diff
+31
-15
@@ -349,28 +349,39 @@ in
|
|||||||
efi.efiSysMountPoint = "/boot";
|
efi.efiSysMountPoint = "/boot";
|
||||||
timeout = 5;
|
timeout = 5;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"quiet"
|
"quiet"
|
||||||
"splash"
|
"splash"
|
||||||
"udev.log_level=3"
|
"udev.log_level=3"
|
||||||
"rd.systemd.show_status=false"
|
"rd.systemd.show_status=false"
|
||||||
# Sleep / power management
|
# Sleep / power management
|
||||||
"mem_sleep_default=deep" # Use S3 deep sleep, fixes sleep not working
|
"mem_sleep_default=deep"
|
||||||
"acpi_osi=Linux" # Tell ACPI this is a Linux system
|
"acpi_osi=Linux"
|
||||||
"acpi_backlight=native" # Proper backlight control
|
"acpi_backlight=native"
|
||||||
# Intel GPU — fixes screen blinking on sleep/wake
|
# Intel GPU
|
||||||
"i915.enable_psr=0"
|
"i915.enable_psr=0"
|
||||||
"i915.enable_psr2_sel_fetch=0"
|
"i915.enable_psr2_sel_fetch=0"
|
||||||
# Prevent nvme from waking the system
|
# NVMe
|
||||||
"nvme.noacpi=1"
|
"nvme.noacpi=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options snd_hda_intel power_save=0
|
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.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 = [
|
boot.initrd.availableKernelModules = [
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"nvme"
|
"nvme"
|
||||||
@@ -378,24 +389,29 @@ in
|
|||||||
"sd_mod"
|
"sd_mod"
|
||||||
"rtsx_usb_sdmmc"
|
"rtsx_usb_sdmmc"
|
||||||
];
|
];
|
||||||
hardware.enableAllFirmware = true;
|
|
||||||
boot.kernelModules = [
|
boot.kernelModules = [
|
||||||
"kvm-intel"
|
"kvm-intel" # QEMU/KVM virtualisation
|
||||||
"asus_wmi" # Asus-specific power/fan/keyboard control
|
|
||||||
];
|
];
|
||||||
boot.plymouth = {
|
|
||||||
enable = true;
|
boot.plymouth.enable = true;
|
||||||
};
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.enableAllFirmware = true;
|
||||||
|
hardware.cpu.intel.updateMicrocode =
|
||||||
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
# Power management
|
# Power management
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
|
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
HandleSleepKey = "ignore";
|
HandleSleepKey = "ignore";
|
||||||
HandleSleepKeyLongPress = "ignore";
|
HandleSleepKeyLongPress = "ignore";
|
||||||
};
|
};
|
||||||
services.thermald.enable = true; # Intel thermal management daemon
|
|
||||||
|
services.thermald.enable = true;
|
||||||
|
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -7,28 +7,39 @@
|
|||||||
efi.efiSysMountPoint = "/boot";
|
efi.efiSysMountPoint = "/boot";
|
||||||
timeout = 5;
|
timeout = 5;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"quiet"
|
"quiet"
|
||||||
"splash"
|
"splash"
|
||||||
"udev.log_level=3"
|
"udev.log_level=3"
|
||||||
"rd.systemd.show_status=false"
|
"rd.systemd.show_status=false"
|
||||||
# Sleep / power management
|
# Sleep / power management
|
||||||
"mem_sleep_default=deep" # Use S3 deep sleep, fixes sleep not working
|
"mem_sleep_default=deep"
|
||||||
"acpi_osi=Linux" # Tell ACPI this is a Linux system
|
"acpi_osi=Linux"
|
||||||
"acpi_backlight=native" # Proper backlight control
|
"acpi_backlight=native"
|
||||||
# Intel GPU — fixes screen blinking on sleep/wake
|
# Intel GPU
|
||||||
"i915.enable_psr=0"
|
"i915.enable_psr=0"
|
||||||
"i915.enable_psr2_sel_fetch=0"
|
"i915.enable_psr2_sel_fetch=0"
|
||||||
# Prevent nvme from waking the system
|
# NVMe
|
||||||
"nvme.noacpi=1"
|
"nvme.noacpi=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options snd_hda_intel power_save=0
|
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.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 = [
|
boot.initrd.availableKernelModules = [
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"nvme"
|
"nvme"
|
||||||
@@ -36,24 +47,29 @@
|
|||||||
"sd_mod"
|
"sd_mod"
|
||||||
"rtsx_usb_sdmmc"
|
"rtsx_usb_sdmmc"
|
||||||
];
|
];
|
||||||
hardware.enableAllFirmware = true;
|
|
||||||
boot.kernelModules = [
|
boot.kernelModules = [
|
||||||
"kvm-intel"
|
"kvm-intel" # QEMU/KVM virtualisation
|
||||||
"asus_wmi" # Asus-specific power/fan/keyboard control
|
|
||||||
];
|
];
|
||||||
boot.plymouth = {
|
|
||||||
enable = true;
|
boot.plymouth.enable = true;
|
||||||
};
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.enableAllFirmware = true;
|
||||||
|
hardware.cpu.intel.updateMicrocode =
|
||||||
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
# Power management
|
# Power management
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
|
|
||||||
services.logind.settings.Login = {
|
services.logind.settings.Login = {
|
||||||
HandleSleepKey = "ignore";
|
HandleSleepKey = "ignore";
|
||||||
HandleSleepKeyLongPress = "ignore";
|
HandleSleepKeyLongPress = "ignore";
|
||||||
};
|
};
|
||||||
services.thermald.enable = true; # Intel thermal management daemon
|
|
||||||
|
services.thermald.enable = true;
|
||||||
|
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user