30 lines
518 B
Nix
30 lines
518 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
programs.opencode = {
|
|
enable = true;
|
|
rules = "";
|
|
settings = {
|
|
theme = "opencode";
|
|
model = "moonshotai/kimi-k2-thinking";
|
|
autoshare = false;
|
|
autoupdate = true;
|
|
provider = {
|
|
openrouter = {
|
|
models = {
|
|
# put models here
|
|
};
|
|
options = {
|
|
# TODO! use agenix here instead
|
|
apiKey = "{file:${../secrets/openrouter_api_key}}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|