opencode hm config
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./opencode.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
agenix-cli
|
||||
alejandra
|
||||
beads
|
||||
bc
|
||||
bun
|
||||
claude-code
|
||||
devpod
|
||||
#devpod-desktop
|
||||
code2prompt
|
||||
|
||||
50
home/features/coding/opencode.nix
Normal file
50
home/features/coding/opencode.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
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"]
|
||||
}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user