fix: opencode perms

This commit is contained in:
Jet 2026-04-23 19:50:27 -07:00
parent 9c1487cd7d
commit 572a731057
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -69,9 +69,6 @@
User = "jet"; User = "jet";
Restart = "always"; Restart = "always";
RestartSec = 5; RestartSec = 5;
Environment = [
''OPENCODE_PERMISSION={"*":"allow","external_directory":"allow","doom_loop":"allow"}''
];
ExecStartPre = [ ExecStartPre = [
"${pkgs.tailscale}/bin/tailscale serve --bg 4096" "${pkgs.tailscale}/bin/tailscale serve --bg 4096"
]; ];

View file

@ -603,9 +603,7 @@ in
"dr" = "direnv reload"; "dr" = "direnv reload";
"da" = "direnv allow"; "da" = "direnv allow";
"nfu" = "nix flake update"; "nfu" = "nix flake update";
"o" = "o" = "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";
@ -862,6 +860,11 @@ in
"$schema" = "https://opencode.ai/config.json"; "$schema" = "https://opencode.ai/config.json";
autoupdate = false; autoupdate = false;
plugin = [ "opencode-with-claude" ]; plugin = [ "opencode-with-claude" ];
permission = {
"*" = "allow";
external_directory = "allow";
doom_loop = "allow";
};
mcp.linear = { mcp.linear = {
type = "remote"; type = "remote";
url = "https://mcp.linear.app/mcp"; url = "https://mcp.linear.app/mcp";