nixos-hardware/lenovo/thinkpad/x1/6th-gen/QHD/default.nix

27 lines
528 B
Nix
Raw Normal View History

2018-05-31 09:56:43 -04:00
# X1 6th generation with a QHD (2560x1440px) display
{ config, ... }:
2018-05-31 09:56:43 -04:00
{
imports = [
../.
];
# give tlp more control over battery
boot = {
extraModulePackages = with config.boot.kernelPackages; [
acpi_call
];
kernelModules = [
"acpi_call"
];
};
2018-05-31 09:56:43 -04:00
# see https://linrunner.de/en/tlp/docs/tlp-faq.html#battery
services.tlp.extraConfig = ''
START_CHARGE_THRESH_BAT0=75
STOP_CHARGE_THRESH_BAT0=80
'';
# fix font sizes in X
2018-05-31 09:56:43 -04:00
services.xserver.dpi = 210;
fonts.fontconfig.dpi = 210;
}