mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 17:38:41 +08:00
thinkpad: only enable tp_smapi on compatible ThinkPads, closes #36
This commit is contained in:
11
lenovo/thinkpad/tp-smapi.nix
Normal file
11
lenovo/thinkpad/tp-smapi.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
# tp_smapi works on ThinkPads made before 2013. See compat table:
|
||||
# https://www.thinkwiki.org/wiki/Tp_smapi#Model-specific_status
|
||||
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
boot = {
|
||||
kernelModules = [ "tp_smapi" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ tp_smapi ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user