fix(#2422): avoid hardcoded agent site packages

This commit is contained in:
Rod Boev authored and nesquena-hermes committed 2026-07-14 01:06:49 +00:00
1 parent 70514549c4
commit 72b51a6b78
3 files changed
+12 -7

No files matched your search

+3 -3
View File
@@ -50,8 +50,8 @@ let
inferredAgentDir =
if cfg.agent.package == null then
null
else if (cfg.agent.package ? passthru) && (cfg.agent.package.passthru ? hermesVenv) then
"${cfg.agent.package.passthru.hermesVenv}/lib/python3.12/site-packages"
else if (cfg.agent.package ? passthru) && (cfg.agent.package.passthru ? hermesAgentDir) then
"${cfg.agent.package.passthru.hermesAgentDir}"
else
null;
@@ -148,7 +148,7 @@ in
package = lib.mkOption {
type = lib.types.nullOr lib.types.package;
default = null;
description = "Package to derive HERMES_WEBUI_AGENT_DIR and HERMES_WEBUI_PYTHON from when it exposes passthru.hermesVenv.";
description = "Package to derive HERMES_WEBUI_AGENT_DIR from passthru.hermesAgentDir and HERMES_WEBUI_PYTHON from passthru.hermesVenv.";
};
dir = lib.mkOption {