feat: fix opencode yolo mode and add mcp servers

This commit is contained in:
Jet 2026-04-06 09:20:21 -07:00
parent cf18c87bff
commit 5772ba0e19
No known key found for this signature in database

View file

@ -558,8 +558,9 @@ in
"da" = "direnv allow";
"nfu" = "nix flake update";
"c" = "claude";
"o" = "opencode";
"ou" = "OPENCODE_PERMISSION='\"allow\"' opencode";
"o" =
"OPENCODE_PERMISSION='{\"*\":\"allow\",\"external_directory\":\"allow\",\"doom_loop\":\"allow\"}' opencode";
"os" = "opencode";
".." = "z ..";
j = "jj";
jgf = "jj git fetch";
@ -837,6 +838,22 @@ in
];
};
home.file.".config/opencode/opencode.json".text = builtins.toJSON {
"$schema" = "https://opencode.ai/config.json";
mcp = {
linear = {
type = "remote";
url = "https://mcp.linear.app/mcp";
enabled = true;
};
github = {
type = "remote";
url = "https://api.githubcopilot.com/mcp/";
enabled = true;
};
};
};
xdg.userDirs = {
enable = true;
setSessionVariables = true;