2023-01-03 21:17:49 -05:00
|
|
|
{ config, lib, ... }:
|
2023-01-07 20:52:23 -05:00
|
|
|
lib.mkIf (config.platform == "laptop") {
|
2022-03-03 13:01:09 -05:00
|
|
|
services.upower = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
usePercentageForPolicy = true;
|
|
|
|
percentageLow = 15;
|
|
|
|
percentageCritical = 5;
|
2023-09-21 23:43:27 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
# Power and temperature management tools
|
|
|
|
services.thermald.enable = true;
|
|
|
|
services.tlp.enable = true;
|
2023-09-21 23:50:07 -04:00
|
|
|
services.tlp.settings = {
|
|
|
|
TLP_DEFAULT_MODE = "BAT";
|
|
|
|
TLP_PERSISTENT_DEFAULT = 1;
|
|
|
|
};
|
2022-03-03 13:01:09 -05:00
|
|
|
}
|