fix: manager uses /agents/hm1nd/state, not /state, for HYPERHIVE_STATE_DIR
This commit is contained in:
parent
f21ae1ff98
commit
d0b65b1f47
2 changed files with 7 additions and 18 deletions
|
|
@ -277,18 +277,14 @@ fn render_flake(
|
|||
# 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";
|
||||
HYPERHIVE_STATE_DIR = "/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";
|
||||
HYPERHIVE_STATE_DIR = "/agents/${name}/state";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue