1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 11:29:42 +01:00
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:
bors[bot] 2023-04-07 13:50:33 +00:00 committed by GitHub
commit e810467b0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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