nixos-config/config/battery.nix

15 lines
312 B
Nix

{ config, lib, ... }:
lib.mkIf (config.platform == "laptop") {
services.upower = {
enable = true;
usePercentageForPolicy = true;
percentageLow = 15;
percentageCritical = 5;
};
# Power and temperature management tools
services.thermald.enable = true;
services.tlp.enable = true;
}