Separate out VSCode extensions configuration

This commit is contained in:
2024-06-20 23:11:38 -07:00
parent 5a602fe4c0
commit 909a838063
2 changed files with 19 additions and 13 deletions

View File

@@ -3,19 +3,7 @@
environment.systemPackages = with pkgs; [
rustup
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
bbenoist.nix
ms-python.python
ms-python.vscode-pylance
rust-lang.rust-analyzer
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "openscad-language-support";
publisher = "Leathong";
version = "1.2.3";
sha256 = "2wvlvjHRayf9FmaDZMpiReZ99fvdtANGFst9WfMRCLQ=";
}
];
vscodeExtensions = import ./vscode-extensions.nix { inherit pkgs; };
})
];

18
vscode-extensions.nix Normal file
View File

@@ -0,0 +1,18 @@
{ pkgs, ... }:
let
packagedExtensions = with pkgs.vscode-extensions; [
bbenoist.nix
ms-python.python
ms-python.vscode-pylance
rust-lang.rust-analyzer
];
marketplaceExtensions = (pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "openscad-language-support";
publisher = "Leathong";
version = "1.2.3";
sha256 = "2wvlvjHRayf9FmaDZMpiReZ99fvdtANGFst9WfMRCLQ=";
}
]);
in
packagedExtensions ++ marketplaceExtensions