From a05fd03aa892f62ae747291f41086d3c1bc21013 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Sat, 7 Mar 2026 12:41:18 +0200 Subject: [PATCH] opencode config update --- home/common/default.nix | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/home/common/default.nix b/home/common/default.nix index 3a9bdc5..4171108 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -626,11 +626,12 @@ xdg.configFile."opencode/opencode.jsonc".text = builtins.toJSON { "$schema" = "https://opencode.ai/config.json"; - model = "opencode/kimi-k2.5"; - small_model = "opencode/minimax-m2.1"; + model = "opencode-go/glm-5"; + small_model = "opencode-go/kimi-k2.5"; agent = { - explore.model = "opencode/minimax-m2.1"; + explore.model = "opencode-go/kimi-k2.5"; }; + theme = "system"; lsp = { ruby-lsp = { initialization = { @@ -665,7 +666,6 @@ "bundle" "exec" "ruby-lsp" - "--lsp" ]; }; rubocop = { @@ -681,27 +681,20 @@ ".haml" ]; }; + nil = { + command = [ + (lib.getExe pkgs.nil) + ]; + extensions = [ ".nix" ]; + }; + ameba-ls = { + command = [ + (lib.getExe pkgs-unstable.ameba-ls) + ]; + extensions = [ ".cr" ]; + }; }; mcp = { - memory = { - type = "local"; - command = [ - "npx" - "-y" - "@modelcontextprotocol/server-memory" - ]; - }; - browser = { - type = "local"; - command = [ - "npx" - "-y" - "@agent-infra/mcp-server-browser" - "--headless" - "--executable-path" - (lib.getExe pkgs-unstable.chromium) - ]; - }; context7 = { type = "remote"; url = "https://mcp.context7.com/mcp";