Add upower for laptop battery
This commit is contained in:
parent
d9eaf8b8b7
commit
3995376fc0
10
laptop/config/battery.nix
Normal file
10
laptop/config/battery.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.upower = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
usePercentageForPolicy = true;
|
||||||
|
percentageLow = 15;
|
||||||
|
percentageCritical = 5;
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,6 +3,7 @@ let hashedPassword = "$6$y3eb1phxFWnParRT$w1LNfxJ2ByHoiBa5ywh4STGuIK/r4Tnyxx2Xe/
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./battery.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "kiana-laptop";
|
networking.hostName = "kiana-laptop";
|
||||||
|
|
Loading…
Reference in a new issue