add opencode
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
xargs ${lib.getExe rbw} get "$@" | ${lib.getExe' wl-clipboard "wl-copy"}
|
||||
'')
|
||||
(google-fonts.override { fonts = [ "Tajawal" ]; })
|
||||
pkgs-unstable.opencode
|
||||
];
|
||||
|
||||
programs = {
|
||||
@@ -564,6 +565,36 @@
|
||||
"X-GNOME-Autostart-enabled=false"
|
||||
];
|
||||
|
||||
xdg.configFile."opencode/opencode.jsonc".text = builtins.toJSON {
|
||||
"$schema" = "https://opencode.ai/config.json";
|
||||
model = "opencode/claude-sonnet-4-5";
|
||||
small_model = "opencode/claude-haiku-4-5";
|
||||
agent = {
|
||||
plan.model = "opencode/claude-haiku-4-5";
|
||||
};
|
||||
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)
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gnome.automaticTimeZone = true;
|
||||
gtk.enable = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user