diff options
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; + }; +} |