fix(hermes): inject matrix-nio via PYTHONPATH in container #2
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user