diff --git a/coding.nix b/coding.nix index cec270c..f98b30d 100644 --- a/coding.nix +++ b/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; }; }) ]; diff --git a/vscode-extensions.nix b/vscode-extensions.nix new file mode 100644 index 0000000..82c8987 --- /dev/null +++ b/vscode-extensions.nix @@ -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