{ lib, stdenv, writeShellScriptBin, coreutils, bash, }: let script = writeShellScriptBin "crunch" '' #!/usr/bin/env bash set -euo pipefail # ═══════════════════════════════════════════════════════════════ # crunch — Voice-notified reminders & AI crunch jobs # via systemd transient timers. # # Requires: talk (ElevenLabs TTS) in PATH, ELEVENLABS_API_KEY env. # Optional: pi, opencode for AI crunch mode. # ═══════════════════════════════════════════════════════════════ TALK="''${TALK:-talk}" SELF="$(readlink -f "''${BASH_SOURCE[0]:-$0}")" # ── Helpers ─────────────────────────────────────────────────── usage() { cat <<'EOF' crunch — voice-notified reminders and AI jobs via systemd timers Usage: crunch at