opencode
This commit is contained in:
29
home-manager/progs/opencode.nix
Normal file
29
home-manager/progs/opencode.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
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}}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user