Move battery settings to the configuration for all the 6th gen models
This commit is contained in:
parent
e0a8e01073
commit
5dd535392d
|
@ -5,21 +5,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
../.
|
../.
|
||||||
];
|
];
|
||||||
# give tlp 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
|
|
||||||
'';
|
|
||||||
# fix font sizes in X
|
# fix font sizes in X
|
||||||
services.xserver.dpi = 210;
|
services.xserver.dpi = 210;
|
||||||
fonts.fontconfig.dpi = 210;
|
fonts.fontconfig.dpi = 210;
|
||||||
|
|
|
@ -2,4 +2,19 @@
|
||||||
imports = [
|
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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue