about summary refs log tree commit diff
path: root/modules/nixos-hardware/lenovo/thinkpad/x260/default.nix
blob: c11ef98f79e03cb85ac43285e2f4dbb652d0eac2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  imports = [
    ../.
    ../../../common/cpu/intel
    ../../../common/pc/laptop/acpi_call.nix
  ];

  boot.kernelParams = [
    # https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X260#Thinkpad_X260
    "i915.enable_psr=0"
  ];

  # https://wiki.archlinux.org/index.php/TLP#Btrfs
  services.tlp.settings = {
    SATA_LINKPWR_ON_BAT = "med_power_with_dipm";
  };
}