diff options
author | sils <sils@sils.li> | 2023-10-06 18:04:29 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-10-06 18:04:29 +0200 |
commit | 84fec74020b178a78491ed1137acf816b330b9bf (patch) | |
tree | e8e36fc859ecb33138e037c1a8bdb15b5a4f88ff /sys/services/upower | |
parent | build(flake): update (diff) | |
download | nix-config-84fec74020b178a78491ed1137acf816b330b9bf.tar.gz nix-config-84fec74020b178a78491ed1137acf816b330b9bf.zip |
feat(sys/services/upower): add
Diffstat (limited to '')
-rw-r--r-- | sys/services/upower/default.nix | 10 |
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"; + }; +} |