No description
  • Rust 95.8%
  • Nix 4.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-22 14:06:01 +01:00
assets Balder: Skia avatar, voice loop, tools, nix packaging 2026-11-02 00:13:39 +01:00
nix Face recognition: dlib names the people in what he sees, and the watch reports strangers by face 2026-11-18 19:40:50 +01:00
src feat: make the logo bigger! 2026-11-22 14:06:01 +01:00
.gitignore Balder: Skia avatar, voice loop, tools, nix packaging 2026-11-02 00:13:39 +01:00
AGENTS.md Watch rounds stay on the idle screen 2026-11-19 23:43:03 +01:00
Cargo.lock Canvas layout at 390 units, idle inhibit, STT fallback to the local model, mic gain 2026-11-02 08:51:41 +01:00
Cargo.toml Look around with the gimbal, on request and on a timer; fix the crash on parallel tool calls 2026-11-15 16:35:29 +01:00
config.example.toml feat: only care about pics with faces in periodic scans 2026-11-22 13:53:59 +01:00
flake.lock Sweep over one gimbal connection, describe pictures meanwhile 2026-11-15 22:09:12 +01:00
flake.nix Gimbal tool: drive the DJI OM4 through the om4 CLI so the model can aim the camera before take_photo 2026-11-04 20:34:30 +01:00
README.md Balder: Skia avatar, voice loop, tools, nix packaging 2026-11-02 00:13:39 +01:00
rust-toolchain.toml Balder: Skia avatar, voice loop, tools, nix packaging 2026-11-02 00:13:39 +01:00

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=1 also speaks).
  • BALDER_WINDOWED=1: run in a phone-shaped window on a desktop.
  • Config: $BALDER_CONFIG, ~/.config/balder/config.toml, /etc/balder/config.toml (see config.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