Declare Zed Extensions in Nixpkgs

VSCode extensions can be declared declaratively via vscode-with-extensions, providing reproducible and consistent setups.

Zed also supports extensions, and as its usage grows, it might make sense to support a similar declarative mechanism—e.g. a zed-with-extensions—for managing them.

1 Like

This exists at GitHub - DuskSystems/nix-zed-extensions: Nix expressions for Zed extensions.

Also possible to declare zed extensions via home-manager if you are using it. For example:

{ nixpkgs-unstable, ... }:{
  programs.zed-editor = {
    enable = true;
    package = nixpkgs-unstable.legacyPackages.x86_64-linux.zed-editor;

    extensions = [ "catppuccin-icons" "git-firefly" "html" "lua" "make" "nix" "toml" "color-highlight" ];
  };
}