diff options
author | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-06-09 02:06:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-09 02:06:27 +0300 |
commit | 4d548d09cc6152d0a9da4c472e115dbf28f8d335 (patch) | |
tree | ec368fd530b1edeb6d625c7a723f13a65344f7a9 | |
parent | cfee9e13a5fe650d5d9c871d09b402809b6d44c7 (diff) | |
parent | c354d591a77b7566795f19780c7308bf34b14788 (diff) |
Merge pull request #61 from michaelpj/imp/t480s
Add a basic t480s profile
-rw-r--r-- | lenovo/thinkpad/acpi_call.nix | 10 | ||||
-rw-r--r-- | lenovo/thinkpad/t480s/default.nix | 9 | ||||
-rw-r--r-- | lenovo/thinkpad/x230/default.nix | 5 |
3 files changed, 20 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/t480s/default.nix b/lenovo/thinkpad/t480s/default.nix new file mode 100644 index 0000000..026332e --- /dev/null +++ b/lenovo/thinkpad/t480s/default.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ../../../common/cpu/intel + ../acpi_call.nix + ../. + ]; +} 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" ]; }; |