fix: adjust kernel params to resolve sleep crashes on legolas

This commit is contained in:
2025-11-27 20:22:58 +01:00
committed by Adrian G L
parent 05435bb34d
commit d3043498a9

View File

@@ -8,9 +8,7 @@
boot.kernelParams = [
"nvme_core.default_ps_max_latency_us=0"
"pci=pcie_bus_perf"
"pcie_aspm=off"
"pcie_port_pm=off"
"mem_sleep_default=deep"
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "uas" "rtsx_pci_sdmmc" ];
@@ -57,10 +55,7 @@
AllowSuspendThenHibernate=no
'';
};
# Workaround for resume issues
systemd.services.systemd-suspend.environment = {
SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false";
};
# Disable PCIe wakeups
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled"
@@ -76,12 +71,3 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}