From 1bb357b3c83849aea28e48b91fe79f00ace5e64c Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Fri, 3 Apr 2026 22:56:58 +0200 Subject: [PATCH] enable web search in opencode --- devenv.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devenv.nix b/devenv.nix index 7cb19f6..e644af7 100644 --- a/devenv.nix +++ b/devenv.nix @@ -43,7 +43,16 @@ in openbao pv-migrate mermaid-cli - opencode + ( + # Wrapping opencode to set the OPENCODE_ENABLE_EXA environment variable + runCommand "opencode" { + buildInputs = [ makeWrapper ]; + } '' + mkdir -p $out/bin + makeWrapper ${pkgs.opencode}/bin/opencode $out/bin/opencode \ + --set OPENCODE_ENABLE_EXA "1" + '' + ) garm-cli tea ];