Move Pi runtime resources into project-local .pi directories and keep shell modules responsible for installing Pi, Herdr, gitea-axi, and Pi package patches. Remove legacy global agent context, Claude Code customization, the global skills bridge, and the external skills flake input.
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
# Herdr, a terminal multiplexer for coding agents.
|
|
let
|
|
cfg = config.modules.shell.herdr;
|
|
user = config.user.name;
|
|
in
|
|
{
|
|
options.modules.shell.herdr.enable = lib.mkEnableOption "Herdr, a terminal multiplexer for coding agents";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
registry.shell-shortcut.${config.networking.hostName}.hs = "herdr --session";
|
|
|
|
home-manager.users.${user} = {
|
|
home.packages = [ pkgs.herdr ];
|
|
|
|
# Refresh the vendored project-local Pi extension from the monorepo root.
|
|
# Run `PI_CODING_AGENT_DIR=$PWD/.pi herdr integration install pi`.
|
|
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
|
|
|
|
[experimental]
|
|
kitty_graphics = true
|
|
'';
|
|
};
|
|
};
|
|
}
|