diff options
Diffstat (limited to 'system/modules/hardware/thinkpad.nix')
-rw-r--r-- | system/modules/hardware/thinkpad.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/system/modules/hardware/thinkpad.nix b/system/modules/hardware/thinkpad.nix new file mode 100644 index 00000000..903e819b --- /dev/null +++ b/system/modules/hardware/thinkpad.nix @@ -0,0 +1,26 @@ +{ config, pkgs, ... }: + +{ boot.kernelModules = [ ]; + boot.blacklistedKernelModules = [ "thinkpad_ec" ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ + acpi_call + ]; + + hardware.trackpoint = { + enable = true; + emulateWheel = true; + }; + + services.thinkfan = { + enable = true; + }; + + services.tlp = { + enable = true; + }; + + imports = [ + ./bare-metal.nix + ./laptop.nix + ]; +} |