update cross-module package references, nuke execOnStart
This commit is contained in:
parent
6d61976106
commit
ff647de9ce
13 changed files with 135 additions and 73 deletions
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue