opencode: make oh-my-opencode.json declarative also

This commit is contained in:
2026-01-13 14:46:55 -05:00
parent a022550c4e
commit ac129e39ed

View File

@@ -5,7 +5,24 @@
inputs, inputs,
... ...
}: }:
let
ohMyOpencodeConfig = {
"$schema" =
"https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
agents = {
Sisyphus.model = "opencode/glm-4.7-free";
librarian.model = "opencode/glm-4.7-free";
explore.model = "opencode/glm-4.7-free";
oracle.model = "opencode/glm-4.7-free";
frontend-ui-ux-engineer.model = "opencode/glm-4.7-free";
document-writer.model = "opencode/glm-4.7-free";
multimodal-looker.model = "opencode/glm-4.7-free";
};
};
in
{ {
xdg.configFile."opencode/oh-my-opencode.json".text = builtins.toJSON ohMyOpencodeConfig;
programs.opencode = { programs.opencode = {
package = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.opencode; package = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.opencode;
enable = true; enable = true;