refactor(config): standardize secret names for API keys

This commit is contained in:
tux
2026-05-08 05:31:18 +05:30
parent e28d1acb5e
commit 5bfa9f1e09
3 changed files with 40 additions and 25 deletions

View File

@@ -1,24 +1,34 @@
{
flake.modules.homeManager.shell = {
programs.opencode = {
enable = true;
tui = {
theme = "system";
};
settings = {
provider = {
openrouter = {
options = {
apiKey = "{file:/run/secrets/open_router_api_key}";
flake.modules.homeManager.shell =
{
osConfig ? { },
...
}:
{
programs.opencode = {
enable = true;
tui = {
theme = "system";
};
settings = {
provider = {
google = {
options = {
apiKey = "{file:${osConfig.sops.secrets.gemini-api-key.path}}";
};
};
};
opencode-go = {
options = {
apiKey = "{file:/run/secrets/open_code_go_api_key}";
openrouter = {
options = {
apiKey = "{file:${osConfig.sops.secrets.openrouter-api-key.path}}";
};
};
opencode-go = {
options = {
apiKey = "{file:${osConfig.sops.secrets.opencode-go-api-key.path}}";
};
};
};
};
};
};
};
}