feat: enable power management

This commit is contained in:
Mohammad Rafiq 2025-04-22 09:26:53 +08:00
parent edddab2b14
commit c15c551b90
No known key found for this signature in database
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{
powerManagement = {
enable = true;
powertop.enable = true;
};
services.acpid = {
enable = true;
};
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled"
'';
}