mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
41 lines
948 B
Nix
41 lines
948 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
sops.secrets = {
|
|
"openrouter_api_key" = {};
|
|
"github_token" = {};
|
|
"context7_api_key" = {};
|
|
};
|
|
|
|
programs.opencode = {
|
|
enable = true;
|
|
settings = {
|
|
theme = "opencode";
|
|
provider = {
|
|
openrouter = {
|
|
options = {
|
|
apiKey = "{file:${config.sops.secrets."openrouter_api_key".path}}";
|
|
};
|
|
};
|
|
};
|
|
mcp = {
|
|
github = {
|
|
enabled = true;
|
|
type = "remote";
|
|
url = "https://api.githubcopilot.com/mcp/";
|
|
headers = {
|
|
Authorization = "Bearer {file:${config.sops.secrets."github_token".path}}";
|
|
};
|
|
};
|
|
context7 = {
|
|
enabled = true;
|
|
type = "remote";
|
|
url = "https://mcp.context7.com/mcp";
|
|
headers = {
|
|
"CONTEXT7_API_KEY" = "{file:${config.sops.secrets."context7_api_key".path}}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|