Separate out VSCode extensions configuration
This commit is contained in:
14
coding.nix
14
coding.nix
@@ -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
18
vscode-extensions.nix
Normal 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
|
Reference in New Issue
Block a user