nixos-configs/homeConfigurations/vinzenz/vscode.nix

90 lines
2.9 KiB
Nix
Raw Normal View History

{ pkgs, lib, ... }:
2024-10-27 12:33:35 +01:00
{
2025-05-18 11:03:25 +02:00
config = {
home.sessionVariables.NIXOS_OZONE_WL = "1";
programs.vscode = {
enable = true;
package = pkgs.vscodium;
profiles.default = {
enableUpdateCheck = false;
2025-06-28 09:46:50 +02:00
extensions =
with pkgs.nix-vscode-extensions.open-vsx;
[
jnoortheen.nix-ide
ms-python.python
editorconfig.editorconfig
yzhang.markdown-all-in-one
redhat.vscode-yaml
pkief.material-icon-theme
rust-lang.rust-analyzer
tamasfe.even-better-toml
llvm-vs-code-extensions.vscode-clangd
mkhl.direnv
muhammad-sammy.csharp
davidanson.vscode-markdownlint
2025-10-12 15:16:44 +02:00
#mermaidchart.vscode-mermaid-chart
2025-06-28 09:46:50 +02:00
]
++ (with pkgs.vscode-extensions; [
vadimcn.vscode-lldb
RoweWilsonFrederiskHolme.wikitext
ms-dotnettools.csharp
]);
userSettings = {
"files.autoSave" = "afterDelay";
"files.autoSaveWhenNoErrors" = true;
"files.autoSaveWorkspaceFilesOnly" = true;
2025-05-18 11:03:25 +02:00
"editor.fontFamily" = "'Fira Code', 'Droid Sans Mono', 'monospace', monospace";
"editor.fontLigatures" = true;
"editor.formatOnSave" = true;
"editor.formatOnSaveMode" = "modificationsIfAvailable";
"editor.minimap.autohide" = true;
2025-05-18 11:03:25 +02:00
"workbench.startupEditor" = "readme";
"workbench.enableExperiments" = false;
"workbench.iconTheme" = "material-icon-theme";
2025-05-18 11:03:25 +02:00
"update.mode" = "none";
"extensions.autoUpdate" = false;
"extensions.autoCheckUpdates" = false;
2025-05-18 11:03:25 +02:00
"telemetry.telemetryLevel" = "off";
"redhat.telemetry.enabled" = false;
2025-05-18 11:03:25 +02:00
"git.autofetch" = true;
"git.path" = "${lib.getBin pkgs.git}/bin/git";
"diffEditor.diffAlgorithm" = "advanced";
"explorer.excludeGitIgnore" = false;
"markdown.extension.tableFormatter.normalizeIndentation" = true;
"markdown.extension.toc.orderedList" = false;
2025-05-18 11:03:25 +02:00
"rust-analyzer.checkOnSave.command" = "clippy";
2025-05-18 11:03:25 +02:00
"nix.formatterPath" = "${lib.getBin pkgs.nixfmt-tree}/bin/nixfmt-tree";
2025-06-01 13:47:59 +02:00
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${lib.getBin pkgs.nil}/bin/nil";
"nix.serverSettings" = {
"nil" = {
"formatting" = {
"command" = [ "${lib.getBin pkgs.nixfmt-tree}/bin/nixfmt-tree" ];
2025-06-01 13:47:59 +02:00
};
};
};
2025-05-18 11:03:25 +02:00
2025-10-23 21:36:15 +02:00
"dotnetAcquisitionExtension.sharedExistingDotnetPath" =
"${lib.getBin pkgs.dotnetCorePackages.sdk_9_0}/bin/dotnet";
2025-06-28 09:46:50 +02:00
"\[makefile\]" = {
"editor.insertSpaces" = false;
"editor.detectIndentation" = false;
};
2025-05-18 11:03:25 +02:00
"\[nix\]" = {
"editor.formatOnSave" = false;
};
2025-05-18 11:03:25 +02:00
};
2025-03-15 19:05:34 +01:00
};
2024-10-26 12:32:15 +02:00
};
};
}