mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
Merge pull request #61 from michaelpj/imp/t480s
Add a basic t480s profile
This commit is contained in:
commit
4d548d09cc
3 changed files with 20 additions and 4 deletions
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 = [
|
||||
../.
|
||||
../../../common/cpu/intel
|
||||
../acpi_call.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
acpi_call
|
||||
];
|
||||
kernelModules = [
|
||||
"acpi_call"
|
||||
"tpm-rng"
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue