Add cbatticon

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-07-07 11:34:28 +03:00
parent c3d89af891
commit 183d790db5
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{ user ? throw "user argument is required" }: { config, lib, pkgs, ... }:
{
home-manager.users.${user.name} = {
services.cbatticon = {
enable = true;
lowLevelPercent = 20;
criticalLevelPercent = 10;
};
systemd.user.services.cbatticon.Unit.After = [ "graphical-session.target" ];
};
}