summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/hermes.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/configs/hermes.nix b/configs/hermes.nix
index c80a7b2..7255fc3 100644
--- a/configs/hermes.nix
+++ b/configs/hermes.nix
@@ -175,9 +175,22 @@ in
rm -rf "$p"
cp -r --no-preserve=mode ${claude-subscription-directsdk} "$p"
chown -R hermes:hermes "$p"
+
+ # Writable for hermes, too, see HERMES_MANAGED below.
+ chmod 0660 ${config.services.hermes-agent.stateDir}/.hermes/config.yaml
'';
};
+ # Not managed, as far as Hermes is concerned: managed, it refuses to
+ # save config.yaml at all, which takes interactive model changes that
+ # last (/model --global, hermes model). HERMES_MANAGED wins over the
+ # module's .managed marker. At boot, the settings here still replace
+ # the same keys in config.yaml (model.provider, model.default, ...),
+ # which keeps the rest.
+ environment.variables.HERMES_MANAGED = "false";
+ systemd.services.hermes-agent.environment.HERMES_MANAGED = lib.mkForce "false";
+ systemd.services.hermes-tmux.environment.HERMES_MANAGED = "false";
+
# users.manageLingering is off here. Without a user manager, hermes'
# cron can't run jobs; nothing else needs one.
users.users.hermes.linger = null;