diff options
author | Profpatsch <mail@profpatsch.de> | 2016-02-26 03:18:37 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-02-26 03:18:37 +0100 |
commit | 4b435f20075d73cfcea7c7a9c2ebebb86015c818 (patch) | |
tree | f842bbe57c87ac3f5a93d63af752b7cd2d21418e /modules/hardware/thinkpad.nix | |
parent | 3cbe26730d6e7b64040979d512afe46f90ed33ab (diff) | |
parent | f3f4e855600a10cc1ae7275f9ecf302160430b6a (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'modules/hardware/thinkpad.nix')
-rw-r--r-- | modules/hardware/thinkpad.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/hardware/thinkpad.nix b/modules/hardware/thinkpad.nix new file mode 100644 index 00000000..ba55c80b --- /dev/null +++ b/modules/hardware/thinkpad.nix @@ -0,0 +1,31 @@ +{ lib, config, pkgs, ... }: + +with lib; + +let + cfg = config.vuizvui.hardware.thinkpad; + +in +{ + options.vuizvui.hardware.thinkpad = { + enable = mkEnableOption "thinkpad support"; + }; + + config = mkIf cfg.enable { + # read acpi stats (e.g. battery) + environment.systemPackages = [ pkgs.acpi ]; + + # for wifi + hardware.enableAllFirmware = mkDefault true; + + hardware.trackpoint = mkDefault { + enable = true; + emulateWheel = true; + speed = 250; + sensitivity = 140; + }; + + # TLP Linux Advanced Power Management + services.tlp.enable = mkDefault true; + }; +} |