{...}: {
  services.upower = {
    enable = true;
    usePercentageForPolicy = true;
    percentageLow = 10;
    percentageCritical = 5;
    percentageAction = 1;
    criticalPowerAction = "Hibernate";
  };
}