I found this comment, but I am still confused about overlays and how to use them.
The way I actually do it is a little more complex but essentially is an overlay that looks like:
_: pkgs:
let
community-vscode-extensions = (import <community-vscode-extensions>).extensions.${pkgs.system}.forVSCodeVersion pkgs.vscodium.version;
in
{
vscode-extensions = pkgs.vscode-extensions // {
bierner.markdown-preview-github-styles = community-vscode-extensions.open-vsx.bierner.markdown-preview-github-styles;
earshinov.permute-lines = community-vscode-extensions.open-vsx.earshinov.permute-lines;
ybaumes.highlight-trailing-white-spaces = community-vscode-extensions.open-vsx.ybaumes.highlight-trailing-white-spaces;
};
}
Sorry, I am a newbie, and this looks even more complicated.
these topics might be useful VSCode extensions setup - #10 by Georges
Vscode extension overlay with home-manager - #7 by Zhen-hao
A general overview of overlays from the manual: Nixpkgs 23.11 manual | Nix & NixOS
forgive me if you’ve seen these links already
1 Like