nixdots/system/roles/laptop/power/acpi.nix

21 lines
327 B
Nix
Raw Permalink Normal View History

2024-07-26 23:07:07 +00:00
{
pkgs,
config,
...
}: {
hardware.acpilight.enable = true;
environment.systemPackages = with pkgs; [acpi];
# handle ACPI events
services.acpid.enable = true;
boot = {
kernelModules = ["acpi_call"];
extraModulePackages = with config.boot.kernelPackages; [
acpi_call
cpupower
];
};
}