{ 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
  '';

}

{ 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"
  '';
}

Revert "Change TLP charge thresholds"
Revert "Change TLP charge thresholds"

This reverts commit 76f681355cb6c2aab79d190907fbb521bd19ec87.

This setting is opinionated and should be left to the user.
See: https://github.com/NixOS/nixos-hardware/pull/154#issuecomment-617181517
