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.
This commit is contained in:
parent
a6aa8174fa
commit
d28d2a2494
|
@ -1,9 +1,9 @@
|
||||||
# acpi_call makes tlp work for newer thinkpads
|
# acpi_call makes tlp work for newer thinkpads
|
||||||
|
|
||||||
{ config, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
boot = {
|
boot = lib.mkIf config.services.tlp.enable {
|
||||||
kernelModules = [ "acpi_call" ];
|
kernelModules = [ "acpi_call" ];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue