Reusable devenv modules.
Zed editor project configuration — generates .zed/settings.json, .zed/tasks.json, and arbitrary extra files.
Features:
- nixd auto-configuration — merges
devenv lsp --print-configinto settings (opt-in viazed.nixd.enable) - Typed tasks — freeform submodule with documented fields for all Zed task properties
- Extra files — write any JSON file into
.zed/
Add the input to your devenv.yaml:
inputs:
devenv-modules:
url: github:sebb3/devenv-modulesImport and configure in your devenv.nix:
{ inputs, ... }:
{
imports = [ inputs.devenv-modules.devenvModules.zed ];
zed = {
enable = true;
# nixd.enable = true; # default, auto-configures nixd LSP
settings = {
language_servers = [ "biome" "tsgo" "nixd" "!..." ];
};
tasks = [
{
label = "build";
command = "make";
reveal = "never";
}
];
extraFiles."i18n.json" = {
localePaths = [ "src/locales/en" ];
sourceLocale = "en";
};
};
}