mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 02:06:32 +05:30
30 lines
630 B
Nix
30 lines
630 B
Nix
{
|
|
flake.modules.homeManager.shell = {
|
|
programs.opencode = {
|
|
enable = true;
|
|
tui = {
|
|
theme = "system";
|
|
};
|
|
settings = {
|
|
provider = {
|
|
google = {
|
|
options = {
|
|
apiKey = "{file:/run/secrets/gemini-api-key}";
|
|
};
|
|
};
|
|
openrouter = {
|
|
options = {
|
|
apiKey = "{file:/run/secrets/openrouter-api-key}";
|
|
};
|
|
};
|
|
opencode-go = {
|
|
options = {
|
|
apiKey = "{file:/run/secrets/opencode-go-api-key}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|