Compare commits

...

2 Commits

Author SHA1 Message Date
43fce477fd hostPlatform -> targetPlatform 2026-01-21 15:23:01 -05:00
3b5f4b8fa4 opencode: abstract out haiku model name 2026-01-21 15:21:28 -05:00
2 changed files with 9 additions and 5 deletions

View File

@@ -6,17 +6,21 @@
...
}:
let
# what model should be used in place of haiku?
# glm 4.7-flash is an example
haiku-model = "anthropic/claude-haiku-4-5";
ohMyOpencodeConfig = {
"$schema" =
"https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json";
agents = {
Sisyphus.model = "anthropic/claude-opus-4-5";
librarian.model = "anthropic/claude-haiku-4-5";
explore.model = "anthropic/claude-haiku-4-5";
librarian.model = haiku-model;
explore.model = haiku-model;
oracle.model = "openrouter/openai/gpt-5.2";
frontend-ui-ux-engineer.model = "openrouter/google/gemini-3-pro-preview";
document-writer.model = "anthropic/claude-sonnet-4-5";
multimodal-looker.model = "anthropic/claude-haiku-4-5";
multimodal-looker.model = haiku-model;
};
};
in
@@ -24,7 +28,7 @@ in
xdg.configFile."opencode/oh-my-opencode.json".text = builtins.toJSON ohMyOpencodeConfig;
programs.opencode = {
package = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.opencode;
package = inputs.llm-agents.packages.${pkgs.stdenv.targetPlatform.system}.opencode;
enable = true;
rules = ''
You are an intelligent and observant agent.

View File

@@ -272,7 +272,7 @@
networking.firewall.allowedTCPPorts = [ 53317 ];
system.stateVersion = "25.05";
nixpkgs.hostPlatform = "x86_64-linux";
nixpkgs.targetPlatform = "x86_64-linux";
documentation.enable = true;
documentation.man.enable = true;