nixos-config/config/battery.nix
2023-01-07 20:52:23 -05:00

11 lines
205 B
Nix

{ config, lib, ... }:
lib.mkIf (config.platform == "laptop") {
services.upower = {
enable = true;
usePercentageForPolicy = true;
percentageLow = 15;
percentageCritical = 5;
};
}