feat(box): the box's NixOS system as a module, and lib.mkBox from a few names

The box within reach of the couch: a Raspberry Pi 3B with the AIY Voice
HAT, from the first household's configuration, made generic.

- box/body: the button service, in Python: press and talk, turns by
  voice, a press interrupts; the look signal
- box/*.js: the ir and look capabilities, behind gates, for the brain;
  the ask client, the box's side of a conversation
- box/module.nix: the services, each confined to the devices and
  addresses it needs; the private network as an option (a tailnet by
  default); the Pico found by its USB IDs, as /dev/pdtv26-ir
- box/voicehat.nix: the Voice HAT's device tree overlay and ALSA setup
- lib.mkBox: a box's whole system from its name, the home server's,
  the Wi-Fi network's, and who looks after it
- checks: box-js, box-py (doctests and pyflakes), and box-system (an
  example box's system evaluates)

Generated-by: Claude Opus 5.5
This commit is contained in:
dckc committed 2026-12-02 18:57:03 -06:00
1 parent 2e7156dc36
commit 190600a696
35 files changed
+2152 -3

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{
"name": "pdtv26-box",
"version": "0.1.0",
"description": "The box's capabilities for the agent at the TV: ir and look, over Cap'n Web; and its ask client",
"private": true,
"type": "module",
"license": "Apache-2.0",
"scripts": {
"test": "node --test"
},
"dependencies": {
"capnweb": "0.13.1",
"ws": "8.23.1"
}
}