diff --git a/home.nix b/home.nix index a334e3b..9309af7 100644 --- a/home.nix +++ b/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;