54 lines
1.5 KiB
Nix
54 lines
1.5 KiB
Nix
{
|
|
den.aspects.software.cli = let
|
|
# llama endpoint lives on the entity's domain (host, or standalone home)
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|