Files
nix/modules/software/cli/opencode.nix
T
2026-10-17 23:55:49 -05:00

53 lines
1.4 KiB
Nix

{
den.aspects.software.cli = let
llama = e: { homeManager.programs.opencode.settings.provider."llama.cpp".options.baseURL = "https://llama.${e.domain}/v1"; };
in {
includes = [ ({ host, ... }: llama host) ({ home, ... }: llama home) ];
homeManager = {
programs.opencode = {
enable = true;
settings = {
plugin = [ "opencode-plugin-llama.cpp@latest" "opencode-goal-plugin" "@dietrichgebert/ponytail" ];
provider = {
anthropic = {
options = {
baseURL = "https://claude1.sangg.net/v1";
};
models = {
"claude-opus-5-5" = {
name = "Claude Opus 5.5";
limit = {
context = 1000000;
output = 128000;
};
};
};
};
"llama.cpp" = {
npm = "@ai-sdk/openai-compatible";
name = "llama.cpp";
models = {
"qwen3.6-35b-a3b" = {
name = "qwen3.6-35b-a3b";
};
};
};
};
command = {
goal = {
description = "Set a session-scoped goal and auto-continue until complete.";
template = "$ARGUMENTS";
agent = "build";
};
};
};
};
};
};
}