update cross-module package references, nuke execOnStart

This commit is contained in:
Reid 2024-12-14 16:40:14 -08:00
parent 6d61976106
commit ff647de9ce
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
13 changed files with 135 additions and 73 deletions

View file

@ -6,18 +6,18 @@ let
in {
options.modules.desktop.batsignal = {
enable = mkEnableOption "Enable batsignal, a battery notification service";
package = mkOption {
type = types.package;
default = pkgs.batsignal;
};
};
config = mkIf cfg.enable {
modules.desktop.execOnStart = [
# -w 20 -c 10 -d 5 -- set battery levels
# -p -- notify on plug/unplug
# -m 2 -- set interval to 2 seconds
"${lib.getExe cfg.package} -w 20 -c 10 -d 5 -p -m 2"
];
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"
];
};
};
}