feat: fix opencode yolo mode and add mcp servers
This commit is contained in:
parent
cf18c87bff
commit
5772ba0e19
1 changed files with 19 additions and 2 deletions
21
home.nix
21
home.nix
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue