From 909a83806399c175bafc9ec453b4b6cd917683ad Mon Sep 17 00:00:00 2001 From: Nettika Date: Thu, 20 Jun 2024 23:11:38 -0700 Subject: [PATCH] Separate out VSCode extensions configuration --- coding.nix | 14 +------------- vscode-extensions.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 vscode-extensions.nix 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