Merge pull request #61 from michaelpj/imp/t480s
Add a basic t480s profile
This commit is contained in:
commit
4d548d09cc
10
lenovo/thinkpad/acpi_call.nix
Normal file
10
lenovo/thinkpad/acpi_call.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# acpi_call makes tlp work for newer thinkpads
|
||||||
|
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
boot = {
|
||||||
|
kernelModules = [ "acpi_call" ];
|
||||||
|
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||||
|
};
|
||||||
|
}
|
9
lenovo/thinkpad/t480s/default.nix
Normal file
9
lenovo/thinkpad/t480s/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../../common/cpu/intel
|
||||||
|
../acpi_call.nix
|
||||||
|
../.
|
||||||
|
];
|
||||||
|
}
|
|
@ -4,14 +4,11 @@
|
||||||
imports = [
|
imports = [
|
||||||
../.
|
../.
|
||||||
../../../common/cpu/intel
|
../../../common/cpu/intel
|
||||||
|
../acpi_call.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
extraModulePackages = with config.boot.kernelPackages; [
|
|
||||||
acpi_call
|
|
||||||
];
|
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
"acpi_call"
|
|
||||||
"tpm-rng"
|
"tpm-rng"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue