nixos-hardware/lenovo/thinkpad/common.nix
2017-12-24 00:57:35 +00:00

17 lines
326 B
Nix

{ lib, pkgs, ... }:
let
inherit (lib) mkDefault;
in
{
boot = {
kernelModules = [ "tp_smapi" ];
extraModulePackages = with config.boot.kernelPackages; [ tp_smapi ];
};
hardware.trackpoint.enable = mkDefault true;
services.tlp.enable = mkDefault true;
services.xserver.libinput.enable = mkDefault true;
}