diff --git a/configuration.nix b/configuration.nix index 76b0954..a5c9f92 100644 --- a/configuration.nix +++ b/configuration.nix @@ -72,7 +72,7 @@ ExecStartPre = [ "${pkgs.tailscale}/bin/tailscale serve --bg 4096" ]; - ExecStart = "/etc/profiles/per-user/jet/bin/opencode serve --hostname 127.0.0.1 --port 4096"; + ExecStart = "${config.users.users.jet.home}/.nix-profile/bin/opencode serve --hostname 127.0.0.1 --port 4096"; WorkingDirectory = config.users.users.jet.home; }; }; diff --git a/home.nix b/home.nix index 0d3470e..77971f9 100644 --- a/home.nix +++ b/home.nix @@ -603,7 +603,9 @@ in "dr" = "direnv reload"; "da" = "direnv allow"; "nfu" = "nix flake update"; - "o" = "opencode"; + "o" = + "OPENCODE_PERMISSION='{\"*\":\"allow\",\"external_directory\":\"allow\",\"doom_loop\":\"allow\"}' opencode"; + "os" = "opencode"; ".." = "z .."; j = "jj"; jgf = "jj git fetch"; @@ -860,11 +862,6 @@ in "$schema" = "https://opencode.ai/config.json"; autoupdate = false; plugin = [ "opencode-with-claude" ]; - permission = { - "*" = "allow"; - external_directory = "allow"; - doom_loop = "allow"; - }; mcp.linear = { type = "remote"; url = "https://mcp.linear.app/mcp";