Suspend the system when the battery is critical
This commit is contained in:
parent
398a8378f1
commit
60451af687
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue