summary refs log tree commit diff stats
path: root/sys/services/upower
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys/services/upower/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/services/upower/default.nix b/sys/services/upower/default.nix
new file mode 100644
index 0000000..bd9d0be
--- /dev/null
+++ b/sys/services/upower/default.nix
@@ -0,0 +1,10 @@
+{...}: {
+  services.upower = {
+    enable = true;
+    usePercentageForPolicy = true;
+    percentageLow = 10;
+    percentageCritical = 5;
+    percentageAction = 1;
+    criticalPowerAction = "Hibernate";
+  };
+}