vscode: use fhs and fix extension versions
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
111f7c947b
commit
4978f0e28d
1 changed files with 58 additions and 46 deletions
|
@ -17,58 +17,70 @@ in {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mutableExtensionsDir = false;
|
mutableExtensionsDir = false;
|
||||||
package = pkgs.vscodium;
|
|
||||||
|
# Extension dependencies
|
||||||
|
# https://wiki.nixos.org/wiki/Visual_Studio_Code#Use_VS_Code_extensions_without_additional_configuration
|
||||||
|
package = pkgs.vscodium.fhsWithPackages (ps:
|
||||||
|
with ps; [
|
||||||
|
alejandra # nix-ide
|
||||||
|
blueprint-compiler # blueprint-gtk
|
||||||
|
nixd # nix-ide
|
||||||
|
shfmt # shell-format
|
||||||
|
]);
|
||||||
|
|
||||||
# https://github.com/nix-community/nix-vscode-extensions
|
# https://github.com/nix-community/nix-vscode-extensions
|
||||||
#?? nixos-rebuild repl > inputs.nix-vscode-extensions.extensions.${pkgs.system}.*
|
#?? nixos-rebuild repl > inputs.nix-vscode-extensions.extensions.${pkgs.system}.*
|
||||||
extensions = with inputs.nix-vscode-extensions.extensions.${pkgs.system}.vscode-marketplace; [
|
extensions = let
|
||||||
# Some extensions go missing from open-vsx, so use official marketplace
|
# Use configured version of vscode
|
||||||
# https://github.com/nix-community/nix-vscode-extensions?tab=readme-ov-file#note
|
# https://github.com/nix-community/nix-vscode-extensions?tab=readme-ov-file#extensions
|
||||||
aaron-bond.better-comments
|
#?? extension = with (repo "REPOSITORY"); AUTHOR.EXTENSION
|
||||||
antfu.iconify
|
repo = repo:
|
||||||
antfu.unocss
|
with inputs.nix-vscode-extensions.extensions.${pkgs.system};
|
||||||
bedsteler20.gnome-magic
|
(forVSCodeVersion config.home-manager.users.${config.custom.username}.programs.vscode.package.version).${repo};
|
||||||
bilelmoussaoui.flatpak-vscode
|
in
|
||||||
bmalehorn.vscode-fish
|
with (repo "open-vsx");
|
||||||
bmewburn.vscode-intelephense-client
|
[
|
||||||
bodil.blueprint-gtk
|
aaron-bond.better-comments
|
||||||
bradlc.vscode-tailwindcss
|
antfu.iconify
|
||||||
cormoran.disable-default-keybinding
|
antfu.unocss
|
||||||
csstools.postcss
|
bedsteler20.gnome-magic
|
||||||
dbaeumer.vscode-eslint
|
bilelmoussaoui.flatpak-vscode
|
||||||
#// eamodio.gitlens
|
bmalehorn.vscode-fish
|
||||||
esbenp.prettier-vscode
|
bmewburn.vscode-intelephense-client
|
||||||
foxundermoon.shell-format
|
bradlc.vscode-tailwindcss
|
||||||
ginfuru.ginfuru-better-solarized-dark-theme
|
csstools.postcss
|
||||||
gruntfuggly.todo-tree
|
dbaeumer.vscode-eslint
|
||||||
jnoortheen.nix-ide
|
#// eamodio.gitlens
|
||||||
koihik.vscode-lua-format
|
esbenp.prettier-vscode
|
||||||
mhutchie.git-graph
|
foxundermoon.shell-format
|
||||||
mkhl.direnv
|
ginfuru.ginfuru-better-solarized-dark-theme
|
||||||
ms-python.black-formatter
|
gruntfuggly.todo-tree
|
||||||
ms-python.debugpy
|
jnoortheen.nix-ide
|
||||||
ms-python.isort
|
koihik.vscode-lua-format
|
||||||
ms-python.python
|
mhutchie.git-graph
|
||||||
natizyskunk.sftp
|
mkhl.direnv
|
||||||
pkief.material-icon-theme
|
ms-python.black-formatter
|
||||||
pkief.material-product-icons
|
ms-python.debugpy
|
||||||
sirmspencer.vscode-autohide
|
ms-python.isort
|
||||||
sketchbuch.vsc-workspace-sidebar
|
ms-python.python
|
||||||
svelte.svelte-vscode
|
natizyskunk.sftp
|
||||||
timonwong.shellcheck
|
pkief.material-icon-theme
|
||||||
vincaslt.highlight-matching-tag
|
pkief.material-product-icons
|
||||||
];
|
sketchbuch.vsc-workspace-sidebar
|
||||||
|
svelte.svelte-vscode
|
||||||
|
timonwong.shellcheck
|
||||||
|
vincaslt.highlight-matching-tag
|
||||||
|
]
|
||||||
|
++ (with (repo "vscode-marketplace"); [
|
||||||
|
# Some extensions go missing from open-vsx, so use official marketplace as fallback
|
||||||
|
# https://github.com/nix-community/nix-vscode-extensions?tab=readme-ov-file#note
|
||||||
|
bodil.blueprint-gtk
|
||||||
|
cormoran.disable-default-keybinding
|
||||||
|
sirmspencer.vscode-autohide
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
# Extension dependencies
|
|
||||||
packages = with pkgs; [
|
|
||||||
alejandra # nix-ide
|
|
||||||
blueprint-compiler # blueprint-gtk
|
|
||||||
nixd # nix-ide
|
|
||||||
shfmt # shell-format
|
|
||||||
];
|
|
||||||
|
|
||||||
# https://github.com/nix-community/nixd/blob/main/nixd/docs/features.md
|
# https://github.com/nix-community/nixd/blob/main/nixd/docs/features.md
|
||||||
sessionVariables.NIXD_FLAGS = "--inlay-hints=false"; # Disable package versions in the editor
|
sessionVariables.NIXD_FLAGS = "--inlay-hints=false"; # Disable package versions in the editor
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue