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"
|
||||
'';
|
||||
}
|
|
@ -9,6 +9,7 @@
|
|||
../configs/bootloaders/systemd-boot.nix
|
||||
../configs/filesystems/hw-nemesis.nix
|
||||
../configs/hardware/nvidia.nix
|
||||
../configs/hardware/powermanagement.nix
|
||||
inputs.nixos-hardware.nixosModules.gigabyte-b650
|
||||
];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue