mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 02:06:32 +05:30
refactor(opencode): simplify configuration for provider API keys
This commit is contained in:
@@ -1,34 +1,29 @@
|
|||||||
{
|
{
|
||||||
flake.modules.homeManager.shell =
|
flake.modules.homeManager.shell = {
|
||||||
{
|
programs.opencode = {
|
||||||
osConfig ? { },
|
enable = true;
|
||||||
...
|
tui = {
|
||||||
}:
|
theme = "system";
|
||||||
{
|
};
|
||||||
programs.opencode = {
|
settings = {
|
||||||
enable = true;
|
provider = {
|
||||||
tui = {
|
google = {
|
||||||
theme = "system";
|
options = {
|
||||||
};
|
apiKey = "{file:/run/secrets/gemini-api-key}";
|
||||||
settings = {
|
|
||||||
provider = {
|
|
||||||
google = {
|
|
||||||
options = {
|
|
||||||
apiKey = "{file:${osConfig.sops.secrets.gemini-api-key.path}}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
openrouter = {
|
};
|
||||||
options = {
|
openrouter = {
|
||||||
apiKey = "{file:${osConfig.sops.secrets.openrouter-api-key.path}}";
|
options = {
|
||||||
};
|
apiKey = "{file:/run/secrets/openrouter-api-key}";
|
||||||
};
|
};
|
||||||
opencode-go = {
|
};
|
||||||
options = {
|
opencode-go = {
|
||||||
apiKey = "{file:${osConfig.sops.secrets.opencode-go-api-key.path}}";
|
options = {
|
||||||
};
|
apiKey = "{file:/run/secrets/opencode-go-api-key}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user