From 84fec74020b178a78491ed1137acf816b330b9bf Mon Sep 17 00:00:00 2001 From: sils Date: Fri, 6 Oct 2023 18:04:29 +0200 Subject: feat(sys/services/upower): add --- sys/services/upower/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sys/services/upower/default.nix (limited to 'sys/services/upower/default.nix') 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"; + }; +} -- cgit 1.4.1