Merge pull request 'fix(hermes): inject matrix-nio via PYTHONPATH in container' (#2) from fix/matrix-nio-pythonpath into master

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-04-13 17:00:10 +02:00

View File

@@ -5,6 +5,13 @@
}: let
# Default ElevenLabs voice: Bella (German-capable female)
elevenlabsVoiceId = "hpp4J3VqNfWAUOO0d1Us";
# Extra Python packages from the container's writable venv layer.
# matrix-nio is installed via pip in /home/hermes/.venv but the hermes
# process uses the read-only Nix store Python, so we inject the venv's
# site-packages via PYTHONPATH and provide libstdc++ for libolm (e2e).
venvSitePackages = "/home/hermes/.venv/lib/python3.11/site-packages";
gccLibPath = "${pkgs.stdenv.cc.cc.lib}/lib";
in {
services.hermes-agent = {
enable = true;
@@ -26,6 +33,10 @@ in {
enable = true;
backend = "podman";
extraVolumes = ["/home/m3tam3re/p:/projects:rw"];
extraOptions = [
"--env" "PYTHONPATH=${venvSitePackages}"
"--env" "LD_LIBRARY_PATH=${gccLibPath}"
];
};
settings = {