Files
nix-config/modules/hm/shell/opencode.nix
2026-05-07 18:53:14 +05:30

25 lines
498 B
Nix

{
flake.modules.homeManager.shell = {
programs.opencode = {
enable = true;
tui = {
theme = "system";
};
settings = {
provider = {
openrouter = {
options = {
apiKey = "{file:/run/secrets/open_router_api_key}";
};
};
opencode-go = {
options = {
apiKey = "{file:/run/secrets/open_code_go_api_key}";
};
};
};
};
};
};
}