mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2025-10-10 16:51:54 +05:30
feat: setup opencode
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
./lazygit.nix
|
||||
./aichat.nix
|
||||
./superfile.nix
|
||||
./open-code.nix
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
20
modules/home/shell/open-code.nix
Normal file
20
modules/home/shell/open-code.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "system";
|
||||
provider = {
|
||||
google = {
|
||||
options = {
|
||||
apiKey = "{file:/run/secrets/gemini_api_key}";
|
||||
};
|
||||
};
|
||||
openrouter = {
|
||||
options = {
|
||||
apiKey = "{file:/run/secrets/open_router_api_key}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user