feat: enable power management
This commit is contained in:
parent
edddab2b14
commit
c15c551b90
2 changed files with 13 additions and 0 deletions
12
configs/hardware/powermanagement.nix
Normal file
12
configs/hardware/powermanagement.nix
Normal 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"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue