23 lines
546 B
Nix
23 lines
546 B
Nix
{ 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"
|
|
];
|
|
};
|
|
};
|
|
}
|