Skip to content

Commit e77e88e

Browse files
committed
Add some nvme params
1 parent c4846af commit e77e88e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

niffty/nixos-configuration.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,15 @@
4646
];
4747

4848
hardware.bluetooth.settings.General.Experimental = true;
49+
50+
# Fix NVMe power management - drives run hot without this
51+
boot.kernelParams = [
52+
"pcie_aspm=force"
53+
"pcie_aspm.policy=powersupersave"
54+
];
55+
56+
# Enable runtime PM for NVMe devices so they can enter low-power states
57+
services.udev.extraRules = ''
58+
ACTION=="add", SUBSYSTEM=="pci", ATTR{class}=="0x010802", ATTR{power/control}="auto"
59+
'';
4960
}

0 commit comments

Comments
 (0)