Suspend the system when the battery is critical

This commit is contained in:
coolneng 2020-06-13 17:21:21 +02:00
parent 398a8378f1
commit 60451af687
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,12 @@
dates = "14:00"; dates = "14:00";
}; };
# Suspend to RAM/disk when battery is critical
services.upower = {
enable = true;
percentageCritical = 5;
};
# Import other configuration modules # Import other configuration modules
imports = [ imports = [
./modules/software.nix ./modules/software.nix