summaryrefslogtreecommitdiffstats
path: root/lenovo/thinkpad/x230/default.nix
blob: 6c528ced57a7f6f0709606515632f4bd7706fa78 (plain)
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
{ config, lib, pkgs, ... }:

{
  imports = [
    ../.
    ../../../common/cpu/intel
    ../../../common/pc/laptop/acpi_call.nix
  ];

  boot = {
    kernelModules = [
      "tpm-rng"
    ];
  };

  services.xserver.deviceSection = lib.mkDefault ''
    Option "TearFree" "true"
  '';

  services.tlp.extraConfig = lib.mkDefault ''
    START_CHARGE_THRESH_BAT0=67
    STOP_CHARGE_THRESH_BAT0=100
  '';

}