diff --git a/configs/nixos/modules/shell/herdr.nix b/configs/nixos/modules/shell/herdr.nix index 9c0c511..4c0a6df 100644 --- a/configs/nixos/modules/shell/herdr.nix +++ b/configs/nixos/modules/shell/herdr.nix @@ -10,23 +10,7 @@ let user = config.user.name; in { - options.modules.shell.herdr = { - enable = lib.mkEnableOption "Herdr, a terminal multiplexer for coding agents"; - - integrations = { - pi.enable = lib.mkOption { - type = lib.types.bool; - default = config.modules.shell.pi.enable; - description = "Whether to install Herdr's Pi agent-state integration."; - }; - - omp.enable = lib.mkOption { - type = lib.types.bool; - default = config.modules.shell.omp.enable; - description = "Whether to install Herdr's OMP agent-state integration."; - }; - }; - }; + 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"; @@ -60,13 +44,13 @@ in kitty_graphics = true ''; } - (lib.mkIf cfg.integrations.pi.enable { + (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 cfg.integrations.omp.enable { + (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;