Updated coding configuration

This commit is contained in:
2025-07-31 10:03:15 -03:00
parent e8599dd250
commit 86b48a65c7
2 changed files with 45 additions and 0 deletions

View File

@@ -19,4 +19,29 @@
# Add more Copilot-specific settings as needed # Add more Copilot-specific settings as needed
}; };
}; };
# Playwright support for NixOS (see https://nixos.wiki/wiki/Playwright)
home.packages = [
pkgs.playwright-driver.browsers
];
# Set Playwright environment variables globally for the user
home.sessionVariables = {
PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}";
PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS = "true";
PLAYWRIGHT_NODEJS_PATH = "${pkgs.nodejs}/bin/node";
# Replace 'chromium-rev' with the actual revision if needed
PLAYWRIGHT_LAUNCH_OPTIONS_EXECUTABLE_PATH = "${pkgs.playwright-driver.browsers}/chromium-<chromium-rev>/chrome-linux/chrome";
};
# Deploy mcp.json to ~/.config/Code/User/mcp.json using toJSON
home.file.".config/Code/User/mcp.json" = {
text = builtins.toJSON {
servers = {
context7 = {
type = "stdio";
command = "bun";
args = ["x" "-y" "@upstash/context7-mcp"];
};
};
inputs = [];
};
};
} }

View File

@@ -1,5 +1,25 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.zed-editor = { programs.zed-editor = {
enable = true; enable = true;
extensions = [
"context7.context7"
];
userSettings = {
agent = {
default_model = {
provider = "copilot_chat";
model = "gpt-4.1";
};
inline_alternatives = [
{
provider = "copilot_chat";
model = "gpt-4.1";
}
];
};
features = {
edit_prediction_provider = "copilot";
};
};
}; };
} }