This commit is contained in:
2025-07-17 13:50:49 -06:00
parent 3aaf906d34
commit 98e5bda92e

View File

@@ -21,17 +21,19 @@
]; ];
shellHook = '' shellHook = ''
export PUPPETEER_EXECUTABLE_PATH=${pkgs.chromium}/bin/chromium export PUPPETEER_EXECUTABLE_PATH=${pkgs.chromium}/bin/chromium
export PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=${pkgs.chromium}/bin/chromium mkdir -p ~/.config/opencode
export PLAYWRIGHT_BROWSERS_PATH=0 cp ${self.packages.${system}.config_json}/config.json ~/.config/opencode/opencode.json
''; '';
}; };
packages.run = pkgs.writeShellScriptBin "run_flake" '' packages.run = pkgs.writeShellScriptBin "run_flake" ''
opencode --config ./config.json ${pkgs.opencode}/bin/opencode --config ./config.json
''; '';
packages.config_json = pkgs.writeTextFile { packages.config_json = pkgs.writeTextFile {
name = "config.json"; name = "config.json";
text = '' text = ''
{ {
"$schema": "https://opencode.ai/config.json",
"theme": "github",
"mcpServers": { "mcpServers": {
"memory": { "memory": {
"command": "npx", "command": "npx",