diff options
author | Michael Peyton Jones <me@michaelpj.com> | 2018-06-08 23:51:07 +0100 |
---|---|---|
committer | Michael Peyton Jones <me@michaelpj.com> | 2018-06-08 23:54:25 +0100 |
commit | cbdcc55f37ad1df7503896492ff8c0a0e529d16e (patch) | |
tree | 2314ce989e0fe60eadf5bb4faf7f877c5f78ae17 /lenovo | |
parent | cfee9e13a5fe650d5d9c871d09b402809b6d44c7 (diff) |
Add acpi_call module
Diffstat (limited to 'lenovo')
-rw-r--r-- | lenovo/thinkpad/acpi_call.nix | 10 | ||||
-rw-r--r-- | lenovo/thinkpad/x230/default.nix | 5 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lenovo/thinkpad/acpi_call.nix b/lenovo/thinkpad/acpi_call.nix new file mode 100644 index 0000000..f8c17dc --- /dev/null +++ b/lenovo/thinkpad/acpi_call.nix @@ -0,0 +1,10 @@ +# acpi_call makes tlp work for newer thinkpads + +{ config, ... }: + +{ + boot = { + kernelModules = [ "acpi_call" ]; + extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; + }; +} diff --git a/lenovo/thinkpad/x230/default.nix b/lenovo/thinkpad/x230/default.nix index 604df3d..32e5c13 100644 --- a/lenovo/thinkpad/x230/default.nix +++ b/lenovo/thinkpad/x230/default.nix @@ -4,14 +4,11 @@ imports = [ ../. ../../../common/cpu/intel + ../acpi_call.nix ]; boot = { - extraModulePackages = with config.boot.kernelPackages; [ - acpi_call - ]; kernelModules = [ - "acpi_call" "tpm-rng" ]; }; |