nixos-hardware/common/pc/laptop/acpi_call.nix
Konrad Borowski d28d2a2494 Load acpi_call module only if tlp is being used
power-profiles-daemon cannot use acpi_call. This avoids taining
the kernel by installing an unnecessary kernel module.
2023-04-03 09:18:09 +02:00

11 lines
238 B
Nix

# acpi_call makes tlp work for newer thinkpads
{ config, lib, ... }:
{
boot = lib.mkIf config.services.tlp.enable {
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
};
}