summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nix/system/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nix/system/default.nix b/nix/system/default.nix
index 7d707ca..93e9396 100644
--- a/nix/system/default.nix
+++ b/nix/system/default.nix
@@ -71,6 +71,13 @@
pulse.enable = true;
jack.enable = true;
};
+ services.upower = {
+ enable = true;
+ percentageLow = 20;
+ percentageCritical = 10;
+ percentageAction = 4;
+ criticalPowerAction = "Hibernate";
+ };
services.resolved.enable = true;
# printing