# Low-battery notification watcher (nomarchy.batteryNotify). A package
# (not an inline script) so the VM check can exercise the crossing logic
# on a minimal node against a test_power fake battery — same reasoning
# as nomarchy-doctor. libnotify is deliberately NOT a runtimeInput: the
# user unit puts it on PATH; the check shims notify-send instead.
{ writeShellApplication, coreutils }:

writeShellApplication {
  name = "nomarchy-battery-notify";
  runtimeInputs = [ coreutils ];
  text = builtins.readFile ./nomarchy-battery-notify.sh;
}
