1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-29 07:58:32 +02:00
nixos-hardware/lenovo/thinkpad/x1/6th-gen/default.nix

21 lines
380 B
Nix
Raw Normal View History

2018-05-31 15:56:43 +02:00
{
imports = [
../.
];
# Give TLP service more control over battery
boot = {
extraModulePackages = with config.boot.kernelPackages; [
acpi_call
];
kernelModules = [
"acpi_call"
];
};
# See https://linrunner.de/en/tlp/docs/tlp-faq.html#battery
services.tlp.extraConfig = ''
START_CHARGE_THRESH_BAT0=75
STOP_CHARGE_THRESH_BAT0=80
'';
2018-05-31 15:56:43 +02:00
}