Files
nix-config/modules/hm/shell/opencode.nix
2026-09-11 01:59:55 +05:30

33 lines
764 B
Nix

{
flake.modules.homeManager.shell = {pkgs, ...}: {
programs.opencode = {
enable = true;
package = pkgs.opencode-git;
tui = {
theme = "system";
};
settings = {
model = "opencode-go/kimi-k3";
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}";
};
};
};
plugin = ["@dietrichgebert/ponytail"];
};
};
};
}