mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 10:16:31 +05:30
35 lines
782 B
Nix
35 lines
782 B
Nix
{
|
|
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}}";
|
|
};
|
|
};
|
|
openrouter = {
|
|
options = {
|
|
apiKey = "{file:${osConfig.sops.secrets.openrouter-api-key.path}}";
|
|
};
|
|
};
|
|
opencode-go = {
|
|
options = {
|
|
apiKey = "{file:${osConfig.sops.secrets.opencode-go-api-key.path}}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|