Files
nix-flake/global-configs/vscode.nix
T
greyweather d967557f2d kitagawa rice
- niri + noctalia dotfiles are now manually symlinked
- zsh being extremely slow is fixed
- stylix is now used for easier themeing of apps
2026-07-09 02:26:19 +01:00

90 lines
2.4 KiB
Nix

{
config,
pkgs,
...
}: {
programs.vscode = {
enable = true;
package = pkgs.vscode-with-extensions.override {
vscodeExtensions = with pkgs.vscode-extensions; [
bbenoist.nix
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "patternstore";
publisher = "jdunkel";
version = "0.1.12";
sha256 = "sha256-JtVtBFZPsSMDC9040UE8gTg4YmNLVFQJz0NGa0+QBqA=";
}
{
name = "kdl";
publisher = "kdl-org";
version = "2.1.3";
sha256 = "sha256-Jssmb5owrgNWlmLFSKCgqMJKp3sPpOrlEUBwzZSSpbM=";
}
];
};
profiles.default = {
enableUpdateCheck = false;
userSettings = {
"[nix]" = {
"editor.tabSize" = 2;
};
"chat.disableAIFeatures" = true;
"workbench.welcomePage.walkthroughs.openOnInstall" = false;
"patternStore.savedPatterns" = [
{
label = "convert JSON pairs to Nix format";
find = "\"(\\w+)\": ([\\w, \\{\\}]+?),?$";
replace = "$1 = $2;";
flags = {
"isRegex" = true;
"isCaseSensitive" = false;
"matchWholeWord" = false;
"isMultiline" = false;
};
scope = "global";
}
{
label = "convert JSON opening bracket to Nix format";
find = "(\"\\w+\"): \\{$";
replace = "$1 = {";
flags = {
"isRegex" = true;
"isCaseSensitive" = false;
"matchWholeWord" = false;
"isMultiline" = false;
};
scope = "global";
}
{
label = "convert JSON closing bracket to Nix format";
find = "\\},?$";
replace = "};";
flags = {
"isRegex" = true;
"isCaseSensitive" = false;
"matchWholeWord" = false;
"isMultiline" = false;
};
scope = "global";
}
];
"search.exclude" = {
"**/flake.lock" = true;
"**/assets/**" = true;
};
};
keybindings = [
{
command = "workbench.action.closeActiveEditor";
key = "alt+q";
}
{
command = "workbench.action.files.newFile";
key = "alt+enter";
}
];
};
};
}