feat(herdr): declare config in home-manager and persist state

This commit is contained in:
Ryan Yin
2026-09-14 13:18:57 +08:00
parent 77e31bd4cb
commit c8642fcac4
3 changed files with 46 additions and 1 deletions
-1
View File
@@ -18,6 +18,5 @@
# Utilities
rtk # CLI proxy that reduces LLM token consumption
herdr # Terminal workspace manager for AI coding agents
]);
}
+42
View File
@@ -0,0 +1,42 @@
{
pkgs,
lib,
llm-agents,
...
}:
{
programs.herdr = {
enable = true;
package = llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.herdr;
settings = {
onboarding = false;
update = {
version_check = false;
manifest_check = false;
};
# home-manager owns ~/.ssh/config; keep herdr from writing it too.
remote.manage_ssh_config = false;
# "catppuccin" is the mocha flavor, matching catppuccin-nix's fixed flavor.
theme.name = "catppuccin";
terminal = {
default_shell = lib.getExe pkgs.nushell;
shell_mode = "auto";
new_cwd = "follow";
};
ui = {
agent_panel_sort = "priority";
prompt_new_tab_name = false;
sound.enabled = false;
};
session.resume_agents_on_restore = true;
experimental.kitty_graphics = true;
};
};
}
+4
View File
@@ -164,6 +164,10 @@ in
".local/share/opencode"
".local/state/opencode"
# herdr: plugin registry, plugin checkouts/config, session layout
".config/herdr"
".local/state/herdr"
".context7" # up-to-date docs and code examples for for LLMs & agents
# nvim