From 60451af68790d57db5fe3473a248e21aa1b1fb81 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 13 Jun 2020 17:21:21 +0200 Subject: [PATCH] Suspend the system when the battery is critical --- configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration.nix b/configuration.nix index 9d19b18..0ce75a6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -93,6 +93,12 @@ dates = "14:00"; }; + # Suspend to RAM/disk when battery is critical + services.upower = { + enable = true; + percentageCritical = 5; + }; + # Import other configuration modules imports = [ ./modules/software.nix