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"
'';
}

View file

@ -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" ];