feat(shell): manage herdr agent integrations

This commit was merged in pull request #45.
This commit is contained in:
2026-09-13 06:47:25 -04:00
parent 8fe2e6f844
commit b3bda4a739
3 changed files with 45 additions and 25 deletions

View File

@@ -15,33 +15,47 @@ in
config = lib.mkIf cfg.enable {
registry.shell-shortcut.${config.networking.hostName}.hs = "herdr --session";
home-manager.users.${user} = {
home.packages = [ pkgs.herdr ];
home-manager.users.${user} = lib.mkMerge [
{
home.packages = [ pkgs.herdr ];
xdg.configFile."herdr/config.toml".text = ''
[keys]
prefix = "ctrl+space"
detach = "prefix+d"
reload_config = "prefix+r"
new_workspace = "prefix+c"
new_tab = "prefix+shift+c"
rename_workspace = "prefix+comma"
rename_tab = "prefix+<"
split_vertical = "prefix+backslash"
split_horizontal = "prefix+minus"
switch_workspace = "prefix+1..9"
switch_tab = "prefix+shift+1..9"
focus_pane_left = "prefix+h"
focus_pane_down = "prefix+j"
focus_pane_up = "prefix+k"
focus_pane_right = "prefix+l"
xdg.configFile."herdr/config.toml".text = ''
[keys]
prefix = "ctrl+space"
detach = "prefix+d"
reload_config = "prefix+r"
new_workspace = "prefix+c"
new_tab = "prefix+shift+c"
rename_workspace = "prefix+comma"
rename_tab = "prefix+<"
split_vertical = "prefix+backslash"
split_horizontal = "prefix+minus"
switch_workspace = "prefix+1..9"
switch_tab = "prefix+shift+1..9"
focus_pane_left = "prefix+h"
focus_pane_down = "prefix+j"
focus_pane_up = "prefix+k"
focus_pane_right = "prefix+l"
[ui]
prompt_new_tab_name = false
[ui]
prompt_new_tab_name = false
[experimental]
kitty_graphics = true
'';
};
[experimental]
kitty_graphics = true
'';
}
(lib.mkIf config.modules.shell.pi.enable {
home.file.".pi/agent/extensions/herdr-agent-state.ts" = {
source = "${pkgs.herdr.src}/src/integration/assets/pi/herdr-agent-state.ts";
force = true;
};
})
(lib.mkIf config.modules.shell.omp.enable {
home.file.".omp/agent/extensions/herdr-omp-agent-state.ts" = {
source = "${pkgs.herdr.src}/src/integration/assets/omp/herdr-agent-state.ts";
force = true;
};
})
];
};
}