inject HYPERHIVE_STATE_DIR into container env + extra MCP server envs
This commit is contained in:
parent
9cbb05bb86
commit
f21ae1ff98
2 changed files with 19 additions and 1 deletions
|
|
@ -273,11 +273,22 @@ fn render_flake(
|
|||
name = name;
|
||||
email = "${name}@hyperhive";
|
||||
};
|
||||
# Container-wide env: every service + co-process daemon can
|
||||
# resolve the agent's durable state dir without hard-coding it.
|
||||
environment.variables = {
|
||||
HIVE_LABEL = name;
|
||||
HYPERHIVE_STATE_DIR =
|
||||
if isManager then "/state"
|
||||
else "/agents/${name}/state";
|
||||
};
|
||||
systemd.services.${service}.environment = {
|
||||
HIVE_PORT = toString port;
|
||||
HIVE_LABEL = name;
|
||||
HIVE_DASHBOARD_PORT = toString dashboardPort;
|
||||
HIVE_OPERATOR_PRONOUNS = operatorPronouns;
|
||||
HYPERHIVE_STATE_DIR =
|
||||
if isManager then "/state"
|
||||
else "/agents/${name}/state";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue