codium extensions

This commit is contained in:
Alexander Bantyev 2022-06-02 20:21:47 +04:00
parent 2e8e9be81a
commit e39a8d02bd
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 48 additions and 23 deletions

View File

@ -34,6 +34,10 @@ let
})
];
};
custom-extensions = import ./extensions.nix {
inherit (pkgs.vscode-utils) buildVscodeMarketplaceExtension;
};
in {
environment.systemPackages = [ codium-wayland ];
@ -48,31 +52,33 @@ in {
package = pkgs.vscodium;
mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [
asvetliakov.vscode-neovim
kahole.magit
(inputs.direnv-vscode.packages.${pkgs.system}.vsix.overrideAttrs (_: {
buildPhase = "yarn run build";
installPhase = ''
mkdir -p $out/share/vscode/extensions/direnv.direnv-vscode
cp -R * $out/share/vscode/extensions/direnv.direnv-vscode
'';
}))
extensions = with pkgs.vscode-extensions;
[
asvetliakov.vscode-neovim
kahole.magit
(inputs.direnv-vscode.packages.${pkgs.system}.vsix.overrideAttrs (_: {
buildPhase = "yarn run build";
installPhase = ''
mkdir -p $out/share/vscode/extensions/direnv.direnv-vscode
cp -R * $out/share/vscode/extensions/direnv.direnv-vscode
'';
}))
(pkgs.callPackage ./theme.nix { } config.themes.colors)
(pkgs.callPackage ./theme.nix { } config.themes.colors)
matklad.rust-analyzer
redhat.vscode-yaml
jnoortheen.nix-ide
dhall.dhall-lang
hashicorp.terraform
timonwong.shellcheck
bungcip.better-toml
haskell.haskell
justusadam.language-haskell
ms-python.python
github.vscode-pull-request-github
];
matklad.rust-analyzer
redhat.vscode-yaml
jnoortheen.nix-ide
dhall.dhall-lang
hashicorp.terraform
timonwong.shellcheck
bungcip.better-toml
haskell.haskell
justusadam.language-haskell
ms-python.python
github.vscode-pull-request-github
] ++ pkgs.lib.concatMap builtins.attrValues
(builtins.attrValues custom-extensions);
userSettings = {
"update.mode" = "none";
@ -88,6 +94,7 @@ in {
"vscode-neovim.neovimExecutablePaths.linux" = "${pkgs.neovim}/bin/nvim";
"vscode-neovim.useCtrlKeysForNormalMode" = false;
"vscode-neovim.mouseSelectionStartVisualMode" = true;
"security.workspace.trust.untrustedFiles" = "open";
};
keybindings = [{
key = "ctrl+shift+r";

View File

@ -0,0 +1,18 @@
{ buildVscodeMarketplaceExtension }: {
dhall.vscode-dhall-lsp-server = buildVscodeMarketplaceExtension {
mktplcRef = {
publisher = "dhall";
name = "vscode-dhall-lsp-server";
version = "0.0.4";
sha256 = "sha256-WopWzMCtiiLrx3pHNiDMZYFdjS359vu3T+6uI5A+Nv4=";
};
};
phoityne.phoityne-vscode = buildVscodeMarketplaceExtension {
mktplcRef = {
publisher = "phoityne";
name = "phoityne-vscode";
version = "0.0.27";
sha256 = "sha256-b+my38g6CXhSJn0c3zmZYR9AxpNvFn+gFSQ1FpznHnY=";
};
};
}