mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
25 lines
551 B
Nix
25 lines
551 B
Nix
{ lib, config, ... }:
|
|
let
|
|
moduleName = "batsignal";
|
|
in
|
|
{
|
|
options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} and settings";
|
|
config = lib.mkIf config.swarselmodules.${moduleName} {
|
|
services.${moduleName} = {
|
|
enable = true;
|
|
extraArgs = [
|
|
"-W"
|
|
" Consider charging the battery"
|
|
"-C"
|
|
" Battery is low; plug in charger now"
|
|
"-D"
|
|
" Device will lose power in a few seconds"
|
|
"-c"
|
|
"10"
|
|
"-d"
|
|
"5"
|
|
];
|
|
};
|
|
};
|
|
|
|
}
|