about summary refs log tree commit diff
path: root/hardware/thinkpad/default.nix
blob: adc15199f55dffe19fcb15c9a9779e26910600dc (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
{ pkgs, ... }:
{
  imports = [
    ./hardware.nix

    ../../modules/power-save
    ../../modules/bluetooth
  ];

  # nvramtool settings:
  #
  # fn_ctrl_swap = Enable
  # wwan = Disable
  # me_state = Disable
  # gfx_uma_size = 128M

  # ectool battery threshold setting (84%):
  #
  # ectool -w 0xb1 -z 0x54

  environment.systemPackages = with pkgs; [
    flashrom
    nvramtool
    intelmetool
    ectool
    cbmem
  ];

}