1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-19 09:29:43 +01:00

thinkpad: only enable tp_smapi on compatible ThinkPads, closes #36

This commit is contained in:
Yegor Timoshenko 2017-12-24 15:26:31 +00:00
parent 3743ae21f5
commit 08e080ae11
No known key found for this signature in database
GPG key ID: C34BF9DCC9DF8210
4 changed files with 14 additions and 8 deletions

View file

@ -1,11 +1,6 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
boot = {
kernelModules = [ "tp_smapi" ];
extraModulePackages = with config.boot.kernelPackages; [ tp_smapi ];
};
hardware.trackpoint.enable = lib.mkDefault true;
services.tlp.enable = lib.mkDefault true;
services.xserver.libinput.enable = lib.mkDefault true;

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../. ];
imports = [ ../. ../tp-smapi.nix ];
boot = {
kernelParams = [

View 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 ];
};
}

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../. ];
imports = [ ../. ../tp-smapi.nix ];
# hard disk protection if the laptop falls
services.hdapsd.enable = lib.mkDefault true;