mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
Merge #603
603: Load acpi_call module only if tlp is being used r=Mic92 a=xfix Co-authored-by: Konrad Borowski <konrad@borowski.pw>
This commit is contained in:
commit
e810467b0f
1 changed files with 2 additions and 2 deletions
|
@ -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