- the fake host serves a subset of @endo/agent-mcp-stdio's catalog, with its names, schemas and answers; evaluate takes only E(name).method(arg, ...), and __getMethodNames__ - demo.py --host endo: a real Endo daemon (endo-but-for-bots, llm), its guest served by the package's broker - a downloads folder: the host writes, Hermes reads at ~/Downloads; BindReadOnlyPaths on Linux, a virtiofs share on macOS - .#demo-tools: Hermes and the checks get their whole PATH from the store - each run saves its MCP messages and a transcript - the guide: tools as system calls, names as file descriptors; no Linux networking, but WebApps - grants match a named URL before "download" Generated-by: Claude Opus 5.5
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
# On a Linux host: Hermes's unit runs here, confined by systemd, and the
|
|
# host's systemd serves both of its sockets.
|
|
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.services.hermes-guest;
|
|
in
|
|
{
|
|
imports = [
|
|
./hermes-guest.nix
|
|
./llm-proxy.nix
|
|
];
|
|
|
|
options.services.hermes-guest.hostSocketUnit = lib.mkOption {
|
|
type = lib.types.str;
|
|
example = "endo-guest-hermes.socket";
|
|
description = ''
|
|
The socket unit that serves hostSocket: the guest's host (toybox, say), bound to Hermes's
|
|
guest agent, with SocketUser set to Hermes's user and SocketMode 0600.
|
|
'';
|
|
};
|
|
|
|
options.services.hermes-guest.downloadsUser = lib.mkOption {
|
|
type = lib.types.str;
|
|
example = "toybox";
|
|
description = "The host's user, who writes downloadsDir; Hermes's group may read it.";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.tmpfiles.rules = [
|
|
"d ${cfg.downloadsDir} 0750 ${cfg.downloadsUser} ${config.services.hermes-agent.group} -"
|
|
];
|
|
services.hermes-llm-proxy = {
|
|
enable = true;
|
|
socket = cfg.llmSocket;
|
|
socketUser = config.services.hermes-agent.user;
|
|
};
|
|
systemd.services.hermes-agent = {
|
|
after = [
|
|
"hermes-llm.socket"
|
|
cfg.hostSocketUnit
|
|
];
|
|
requires = [
|
|
"hermes-llm.socket"
|
|
cfg.hostSocketUnit
|
|
];
|
|
};
|
|
};
|
|
}
|