blob: f94b5934c5a596a2b7ffa19c12d2590e81b49639 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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.enableRedistributableFirmware = mkDefault true;
hardware.trackpoint = mkDefault {
enable = true;
emulateWheel = true;
speed = 250;
sensitivity = 140;
};
# TLP Linux Advanced Power Management
services.tlp.enable = mkDefault true;
};
}
|