Files
pdtv26/flake.nix
T
dckc 429bafe9c0
check / check (push) Canceled after 0s
feat(speech): the speech capability over Cap'n Web, behind a gate
The agent's ears and voice: a server on the home server transcribes
a clip (sox, whisper.cpp) and speaks text (piper), one job at a time.
A gate hands the capability to whoever presents its key; the key comes
from systemd's credentials, not argv.

make test runs the unit tests in Nix's sandbox; make smoke starts a
real server on localhost, speaks a phrase, and hears it back.

Generated-by: Claude Opus 5.5
2026-12-02 15:52:23 -06:00

35 lines
1.1 KiB
Nix

{
description = "Peace and dignity at the TV: delegating the remotes to an agent";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forAll = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
python = pkgs: pkgs.python3.withPackages (ps: [ ps.pyserial ]);
in
{
packages = forAll (pkgs: {
speech = pkgs.callPackage ./speech/server.nix { };
speech-js = pkgs.callPackage ./speech/default.nix { };
});
# nix develop --command make test
devShells = forAll (pkgs: {
default = pkgs.mkShellNoCC {
packages = [ (python pkgs) pkgs.gnumake pkgs.gawk pkgs.curl pkgs.picocom ];
};
});
checks = forAll (pkgs: {
ir-pico = pkgs.runCommand "ir-pico-doctests" { nativeBuildInputs = [ (python pkgs) ]; } ''
cd ${./ir-pico}
python3 -I -m doctest ir_commands.py pico_tty.py
touch $out
'';
speech = self.packages.${pkgs.stdenv.hostPlatform.system}.speech-js;
});
};
}