batsignal->poweralertd

This commit is contained in:
Reid 2026-06-15 02:23:39 -07:00
parent c3d63eea99
commit b99f2544a5
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
5 changed files with 20 additions and 25 deletions

View file

@ -1,23 +0,0 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.batsignal;
in {
options.modules.desktop.batsignal = {
enable = mkEnableOption "Enable batsignal, a battery notification service";
};
config = mkIf cfg.enable {
hm.services.batsignal = {
enable = true;
extraArgs = [
# -w 20 -c 10 -d 5 -- set battery levels
# -p -- notify on plug/unplug
# -m 2 -- set interval to 2 seconds
"-w 20" "-c 10" "-d 5" "-p" "-m 2"
];
};
};
}

View file

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.poweralertd;
in {
options.modules.desktop.poweralertd = {
enable = mkEnableOption "Enable poweralertd, a battery notification service";
};
config = mkIf cfg.enable {
services.upower.enable = true;
hm.services.poweralertd.enable = true;
};
}