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";
|
"da" = "direnv allow";
|
||||||
"nfu" = "nix flake update";
|
"nfu" = "nix flake update";
|
||||||
"c" = "claude";
|
"c" = "claude";
|
||||||
"o" = "opencode";
|
"o" =
|
||||||
"ou" = "OPENCODE_PERMISSION='\"allow\"' opencode";
|
"OPENCODE_PERMISSION='{\"*\":\"allow\",\"external_directory\":\"allow\",\"doom_loop\":\"allow\"}' opencode";
|
||||||
|
"os" = "opencode";
|
||||||
".." = "z ..";
|
".." = "z ..";
|
||||||
j = "jj";
|
j = "jj";
|
||||||
jgf = "jj git fetch";
|
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 = {
|
xdg.userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
setSessionVariables = true;
|
setSessionVariables = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue