No description
- Rust 95.8%
- Nix 4.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| assets | ||
| nix | ||
| src | ||
| .gitignore | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| config.example.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| rust-toolchain.toml | ||
Balder
Norwegian voice assistant for the NixOS Moto G17 (lamuc): a Skia-drawn sun avatar, wake word "hei Balder", speech in via whisper.cpp servers, speech out via Piper, brains via any OpenAI-compatible chat endpoint with tool calling (llama-swap + borealis2 by default).
balder: fullscreen app. Tap the sun or say the wake word.balder ask "…": typed question from a terminal, answer printed (BALDER_SPEAK=1also speaks).BALDER_WINDOWED=1: run in a phone-shaped window on a desktop.- Config:
$BALDER_CONFIG,~/.config/balder/config.toml,/etc/balder/config.toml(seeconfig.example.toml).
Deploy
nix/module.nix is a NixOS module: services.balder.enable = true; gives the user service,
a local whisper-server for the wake word, udev rules for brightness/torch, and
/etc/balder/config.toml from services.balder.settings. nix build .#models fetches the
Piper voice and the nb-whisper tiny model.
The real transcription endpoint (stt.url) is expected to be a whisper.cpp whisper-server
with an nb-whisper model, e.g. on mbox:
whisper-server --host 0.0.0.0 --port 8178 -m ggml-nb-whisper-medium-q5_0.bin -l no
Dev
nix develop -c cargo build
nix develop -c cargo test