nixos-config/config/battery.nix

11 lines
212 B
Nix
Raw Normal View History

{ config, lib, ... }:
lib.mkIf (config.custom.platform == "laptop") {
2022-03-03 13:01:09 -05:00
services.upower = {
enable = true;
usePercentageForPolicy = true;
percentageLow = 15;
percentageCritical = 5;
};
}