Updated coding configuration
This commit is contained in:
@@ -19,4 +19,29 @@
|
||||
# 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 = [];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
{pkgs, ...}: {
|
||||
programs.zed-editor = {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user