diff --git a/home-manager/progs/opencode.nix b/home-manager/progs/opencode.nix index f208183..b9b4b71 100644 --- a/home-manager/progs/opencode.nix +++ b/home-manager/progs/opencode.nix @@ -53,8 +53,14 @@ in { home.packages = [ inputs.oh-my-opencode.packages.${pkgs.stdenv.hostPlatform.system}.oh-my-opencode + pkgs.playwright-driver.browsers ]; + home.sessionVariables = { + PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}"; + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1"; + }; + xdg.configFile."opencode/oh-my-opencode.json".text = builtins.toJSON ohMyOpencodeConfig; programs.opencode = { @@ -71,7 +77,7 @@ in ## Misc For long-running commands, make sure you set the timeout of the Bash tool provided to a larger value. Do NOT read secret files. Do not directly read files that are api keys or are contextually sensitive. - Do NOT run `skill_mcp [mcp_name=playwright, tool_name=browser_install]` as it requires root and will not work. + Do NOT run `skill_mcp [mcp_name=playwright, tool_name=browser_install]` as browsers are provided by NixOS via PLAYWRIGHT_BROWSERS_PATH. ## Behavior Do not be sycophantic in your responses.