Files
nixos-config/profiles/opencode.nix
2026-01-20 17:41:15 +00:00

50 lines
836 B
Nix

{
inputs,
pkgs,
...
}: {
programs.opencode = {
enable = true;
package = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.opencode;
settings = {
model = "opencode/gpt-5-2-codex";
small_model = "opencode/gpt-5-1-codex-mini";
theme = "catppuccin";
permission = "allow";
instructions = [
"CLAUDE.md"
"AGENT.md"
"AGENTS.md"
];
formatter = {
mix = {
disabled = true;
};
};
mcp = {
appsignal = {
type = "local";
command = [
"docker"
"run"
"-i"
"--rm"
"-e"
"APPSIGNAL_API_KEY"
"appsignal/mcp"
];
environment = {
APPSIGNAL_API_KEY = "{env:APPSIGNAL_API_KEY}";
};
enabled = true;
};
};
agent = {
explore = {
model = "opencode/minimax-m2.1-free";
};
};
};
};
}