diff --git a/aspects/ai.nix b/aspects/ai.nix index feb4fb7..dc2eef0 100644 --- a/aspects/ai.nix +++ b/aspects/ai.nix @@ -22,7 +22,7 @@ }; }; homeManager.ai = - { inputs, pkgs, ... }: + { config, inputs, pkgs, ... }: { programs.opencode = { enable = true; @@ -35,7 +35,14 @@ mcp = { playwright = { type = "local"; - command = [ "mcp-server-playwright" ]; + command = [ + "${pkgs.coreutils}/bin/env" + "PLAYWRIGHT_BROWSERS_PATH=${config.xdg.cacheHome}/playwright-mcp" + "${pkgs.nodejs}/bin/node" + "${pkgs.playwright-mcp}/lib/node_modules/playwright-mcp-internal/cli.js" + "--executable-path" + "/run/current-system/sw/bin/chromium" + ]; enabled = true; }; };