diff --git a/hosts/legolas/hardware-configuration.nix b/hosts/legolas/hardware-configuration.nix index 59dd650..ba158ca 100644 --- a/hosts/legolas/hardware-configuration.nix +++ b/hosts/legolas/hardware-configuration.nix @@ -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; } - - - - - - - - -