Files
nixos-config/home/features/coding/opencode.nix
2026-01-04 03:49:13 +01:00

51 lines
1.2 KiB
Nix

{
programs.opencode = {
enable = true;
settings = {
theme = "opencode";
plugin = ["oh-my-opencode"];
mcp = {
Ref = {
type = "local";
command = [
"sh"
"-c"
"REF_API_KEY=$(cat /run/agenix/ref-key) exec bunx ref-tools-mcp@latest"
];
enabled = true;
};
};
};
};
home.file.".config/opencode/oh-my-opencode.json".text = ''
{
"$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-sonnet-4-5"
},
"explore": {
"model": "opencode/big-pickle"
},
"oracle": {
"model": "anthropic/claude-sonnet-4-5"
},
"frontend-ui-ux-engineer": {
"model": "anthropic/claude-opus-4-5"
},
"document-writer": {
"model": "anthropic/claude-opus-4-5"
},
"multimodal-looker": {
"model": "anthropic/claude-opus-4-5"
}
},
"disabled_mcps": ["context7"]
}
'';
}