mirror of
https://github.com/materusPL/nixos-config
synced 2026-04-02 16:17:21 +02:00
VSCodium settings update
This commit is contained in:
parent
32e6adb6e3
commit
d51b13294c
@ -94,6 +94,9 @@
|
|||||||
pkgs = import home-nixpkgs {
|
pkgs = import home-nixpkgs {
|
||||||
system = arch;
|
system = arch;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = [
|
||||||
|
inp.nix-vscode-extensions.overlays.default
|
||||||
|
];
|
||||||
};
|
};
|
||||||
materusArgs = {
|
materusArgs = {
|
||||||
inherit files;
|
inherit files;
|
||||||
|
|||||||
@ -49,44 +49,50 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
mutableExtensionsDir = true;
|
mutableExtensionsDir = true;
|
||||||
profiles.default.enableExtensionUpdateCheck = true;
|
profiles.default.enableExtensionUpdateCheck = true;
|
||||||
profiles.default.extensions =
|
profiles.default.extensions = with pkgs.nix-vscode-extensions.vscode-marketplace; [
|
||||||
let
|
# VSCode
|
||||||
market = (
|
kerrickstaley.layered-settings
|
||||||
materusArgs.inputs.nix-vscode-extensions.extensions."${materusArgs.arch}".forVSCodeVersion
|
mkhl.direnv
|
||||||
config.programs.vscode.package.version
|
betterthantomorrow.joyride
|
||||||
);
|
dracula-theme.theme-dracula
|
||||||
marketNv = (materusArgs.inputs.nix-vscode-extensions.extensions."${materusArgs.arch}");
|
leonardssh.vscord
|
||||||
in
|
ms-vscode.hexeditor
|
||||||
with market.vscode-marketplace;
|
pkief.material-icon-theme
|
||||||
with marketNv.vscode-marketplace;
|
pkief.material-product-icons
|
||||||
[
|
|
||||||
# Python
|
|
||||||
#ms-python.vscode-pylance
|
|
||||||
ms-python.python
|
|
||||||
ms-python.debugpy
|
|
||||||
ms-python.vscode-python-envs
|
|
||||||
|
|
||||||
# Git
|
# Python
|
||||||
eamodio.gitlens
|
#ms-python.vscode-pylance
|
||||||
donjayamanne.githistory
|
ms-python.python
|
||||||
waderyan.gitblame
|
ms-python.debugpy
|
||||||
codezombiech.gitignore
|
ms-python.vscode-python-envs
|
||||||
|
|
||||||
# Lua
|
# Git
|
||||||
sumneko.lua
|
eamodio.gitlens
|
||||||
|
donjayamanne.githistory
|
||||||
|
waderyan.gitblame
|
||||||
|
codezombiech.gitignore
|
||||||
|
|
||||||
# VSCode
|
# Lua
|
||||||
kerrickstaley.layered-settings
|
sumneko.lua
|
||||||
mkhl.direnv
|
|
||||||
betterthantomorrow.joyride
|
|
||||||
dracula-theme.theme-dracula
|
|
||||||
|
|
||||||
# Jsonnet
|
# Jsonnet
|
||||||
grafana.vscode-jsonnet
|
grafana.vscode-jsonnet
|
||||||
|
|
||||||
# Nix
|
# Nix
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
];
|
|
||||||
|
# C++
|
||||||
|
twxs.cmake
|
||||||
|
llvm-vs-code-extensions.vscode-clangd
|
||||||
|
ms-vscode.cmake-tools
|
||||||
|
cs128.cs128-clang-tidy
|
||||||
|
xaver.clang-format
|
||||||
|
|
||||||
|
# Other
|
||||||
|
redhat.vscode-yaml
|
||||||
|
redhat.vscode-xml
|
||||||
|
webfreak.debug
|
||||||
|
];
|
||||||
package = (
|
package = (
|
||||||
pkgs.vscodium.fhsWithPackages (
|
pkgs.vscodium.fhsWithPackages (
|
||||||
ps: with ps; [
|
ps: with ps; [
|
||||||
@ -95,6 +101,8 @@ in
|
|||||||
direnv
|
direnv
|
||||||
jsonnet
|
jsonnet
|
||||||
jsonnet-language-server
|
jsonnet-language-server
|
||||||
|
clang-tools
|
||||||
|
clang
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -104,17 +112,22 @@ in
|
|||||||
home.activation.mutableFileGeneration =
|
home.activation.mutableFileGeneration =
|
||||||
let
|
let
|
||||||
source = jsonFormat.generate "settings.nix" {
|
source = jsonFormat.generate "settings.nix" {
|
||||||
|
# VSCode
|
||||||
"window.dialogStyle" = "custom";
|
"window.dialogStyle" = "custom";
|
||||||
"window.titleBarStyle" = "custom";
|
"window.titleBarStyle" = "custom";
|
||||||
"workbench.colorTheme" = "Dracula Theme";
|
"workbench.colorTheme" = "Dracula Theme";
|
||||||
|
"workbench.iconTheme" = "material-icon-theme";
|
||||||
"editor.fontFamily" = "'Hack Nerd Font', 'monospace', monospace";
|
"editor.fontFamily" = "'Hack Nerd Font', 'monospace', monospace";
|
||||||
|
|
||||||
"direnv.path.executable" = "${pkgs.direnv}/bin/direnv";
|
"direnv.path.executable" = "${pkgs.direnv}/bin/direnv";
|
||||||
|
"vscord.app.name" = "VSCodium";
|
||||||
|
|
||||||
|
# Typescript
|
||||||
"typescript.tsserver.maxTsServerMemory" = 1024 * 8;
|
"typescript.tsserver.maxTsServerMemory" = 1024 * 8;
|
||||||
"typescript.tsserver.nodePath" = "${pkgs.nodejs}/bin/node";
|
"typescript.tsserver.nodePath" = "${pkgs.nodejs}/bin/node";
|
||||||
|
# Nix
|
||||||
|
"[nix]" = {
|
||||||
|
"editor.defaultFormatter" = "jnoortheen.nix-ide";
|
||||||
|
};
|
||||||
"nix.enableLanguageServer" = true;
|
"nix.enableLanguageServer" = true;
|
||||||
"nix.formatterPath" = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
|
"nix.formatterPath" = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
|
||||||
"nix.serverPath" = "${pkgs.nixd}/bin/nixd";
|
"nix.serverPath" = "${pkgs.nixd}/bin/nixd";
|
||||||
@ -131,14 +144,33 @@ in
|
|||||||
};
|
};
|
||||||
"options" = {
|
"options" = {
|
||||||
"nixos" = {
|
"nixos" = {
|
||||||
"expr" = "(builtins.getFlake (builtins.toString \"/mkk/config\" )).nixosConfigurations.materusPC.options";
|
"expr" =
|
||||||
|
"(builtins.getFlake (builtins.toString \"/mkk/config\" )).nixosConfigurations.materusPC.options";
|
||||||
};
|
};
|
||||||
"home-manager" = {
|
"home-manager" = {
|
||||||
"expr" = "(builtins.getFlake (builtins.toString \"/mkk/config\")).homeConfigurations.materus.options";
|
"expr" =
|
||||||
|
"(builtins.getFlake (builtins.toString \"/mkk/config\")).homeConfigurations.materus.options";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# C++
|
||||||
|
"C_Cpp.clang_format_path" = "${pkgs.clang-tools}/bin/clang-format";
|
||||||
|
"C_Cpp.clang_format_fallbackStyle" = "Microsoft";
|
||||||
|
"clang-tidy.executable" = "${pkgs.clang-tools}/bin/clang-tidy";
|
||||||
|
"[cpp]" = {
|
||||||
|
"editor.defaultFormatter" = "xaver.clang-format";
|
||||||
|
};
|
||||||
|
"[c]" = {
|
||||||
|
"editor.defaultFormatter" = "xaver.clang-format";
|
||||||
|
};
|
||||||
|
"cmake.showOptionsMovedNotification" = false;
|
||||||
|
"cmake.pinnedCommands" = [
|
||||||
|
"workbench.action.tasks.configureTaskRunner"
|
||||||
|
"workbench.action.tasks.runTask"
|
||||||
|
];
|
||||||
|
"clang-format.fallbackStyle" = "Microsoft";
|
||||||
|
|
||||||
};
|
};
|
||||||
target = config.xdg.configFile."VSCodium/User/settings.nix.jsonnet".target;
|
target = config.xdg.configFile."VSCodium/User/settings.nix.jsonnet".target;
|
||||||
command = ''
|
command = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user