commit | 7528b79cfe565f5f2fc5b7ca60b6d3001a28d96e | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Tue Mar 07 13:12:50 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Tue Mar 07 13:12:50 2023 +0000 |
tree | c259fc2091295b5a5ea7782e293b810918a34a56 | |
parent | ded28de150e7277a5cc7c2b3035209700054ea3d [diff] |
Hibernate when power is too low
diff --git a/modules/battery.nix b/modules/battery.nix index b7d0f47..fdc9bcc 100644 --- a/modules/battery.nix +++ b/modules/battery.nix
@@ -1,6 +1,7 @@ { pkgs, ... }: { config = { services.auto-cpufreq.enable = true; + services.upower.criticalPowerAction = "Hibernate"; environment = { systemPackages = with pkgs; [ cpufrequtils powertop ];