fix: manager uses /agents/hm1nd/state, not /state, for HYPERHIVE_STATE_DIR

This commit is contained in:
damocles 2026-05-20 13:24:18 +02:00
parent f21ae1ff98
commit d0b65b1f47
2 changed files with 7 additions and 18 deletions

View file

@ -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";
};
}
];