{"id":26446540,"url":"https://github.com/dusksystems/nix-zed-extensions","last_synced_at":"2025-07-31T23:34:07.866Z","repository":{"id":281557595,"uuid":"940344611","full_name":"DuskSystems/nix-zed-extensions","owner":"DuskSystems","description":"Nix expressions for Zed extensions.","archived":false,"fork":false,"pushed_at":"2025-06-13T03:28:04.000Z","size":1882,"stargazers_count":36,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T11:06:03.765Z","etag":null,"topics":["home-manager","nix","nixos","zed"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DuskSystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-28T02:35:58.000Z","updated_at":"2025-06-13T03:28:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"8239ae9f-6cc9-4fa0-9e5f-ec1bccc9000f","html_url":"https://github.com/DuskSystems/nix-zed-extensions","commit_stats":null,"previous_names":["dusksystems/nix-zed-extensions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DuskSystems/nix-zed-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskSystems%2Fnix-zed-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskSystems%2Fnix-zed-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskSystems%2Fnix-zed-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskSystems%2Fnix-zed-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DuskSystems","download_url":"https://codeload.github.com/DuskSystems/nix-zed-extensions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuskSystems%2Fnix-zed-extensions/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259634348,"owners_count":22887697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["home-manager","nix","nixos","zed"],"created_at":"2025-03-18T12:18:19.138Z","updated_at":"2025-06-13T11:07:33.757Z","avatar_url":"https://github.com/DuskSystems.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![sync](https://github.com/DuskSystems/nix-zed-extensions/actions/workflows/sync.yml/badge.svg)](https://github.com/DuskSystems/nix-zed-extensions/actions/workflows/sync.yml)\n[![test](https://github.com/DuskSystems/nix-zed-extensions/actions/workflows/test.yml/badge.svg)](https://github.com/DuskSystems/nix-zed-extensions/actions/workflows/test.yml)\n\n# `nix-zed-extensions`\n\nNix expressions for Zed extensions.\n\n- Over 500 [extensions generated](extensions.json).\n- Daily sync from the [Zed extensions registry](https://github.com/zed-industries/extensions).\n\n## Usage\n\n```nix\n{\n  inputs = {\n    zed-extensions = {\n      url = \"github:DuskSystems/nix-zed-extensions\";\n    };\n  };\n}\n```\n\n### Overlay\n\nThis will register all extensions and grammars as packages under `pkgs.zed-extensions` and `pkgs.zed-grammars` respectively.\n\n```nix\nnixpkgs.overlays = [\n  zed-extensions.overlays.default\n];\n```\n\nExtensions are named like: `\u003cextension_id\u003e`.\n\n```bash\n\u003e nix eval --json .#zed-extensions\n{\n  \"0x96f\": \"/nix/store/hzmxbivy2hbv4456x92v2wfcfqrz4ylq-zed-extension-0x96f-1.3.1\",\n  \"actionscript\": \"/nix/store/ld75wsldpf34m4v6n1l6dzbjkv65jc7j-zed-extension-actionscript-0.0.1\",\n  \"activitywatch\": \"/nix/store/7n94l7931xn3zgpiv2ff5pabbh20lkpl-zed-extension-activitywatch-0.1.2\",\n  ...\n}\n```\n\nGrammars are named like: `\u003cextension_id\u003e_\u003cgrammar_id\u003e`.\n\n```bash\n\u003e nix eval --json .#zed-grammars\n{\n  \"actionscript_actionscript\": \"/nix/store/skdvlxrzbgl5731xxgx6cnx3v86305fp-zed-grammar-actionscript-24919034fc78fdf9bedaac6616b6a60af20ab9b5\",\n  \"ada_ada\": \"/nix/store/h7acvmsrrw0av4sk01255lxx19i99q2m-zed-grammar-ada-e8e2515465cc2d7c444498e68bdb9f1d86767f95\",\n  \"aiken_aiken\": \"/nix/store/s83ydp2xkklgcfa0vqwazd7migs5xd5y-zed-grammar-aiken-229c5fa484468e0fd13f6264710a7f6cbb7436f1\",\n  ...\n}\n```\n\n### Home Manager Module\n\nA `home-manager` module that allows you to install extensions.\n\nUse it alongside your existing `zed-editor` config.\n\n```nix\nhome-manager.sharedModules = [\n  zed-extensions.homeManagerModules.default\n];\n```\n\n```nix\n{\n  pkgs,\n}:\n\n{\n  programs.zed-editor = {\n    ...\n  };\n\n  programs.zed-editor-extensions = {\n    enable = true;\n    packages = with pkgs.zed-extensions; [\n      nix\n    ];\n  };\n}\n```\n\n### Building Grammars Manually\n\nUse the `buildZedGrammar` builder function.\n\n#### buildZedGrammar\n\n```nix\n{\n  buildZedGrammar,\n  fetchFromGitHub,\n}:\n\nbuildZedGrammar (finalAttrs: {\n  name = \"nix\";\n  version = \"b3cda619248e7dd0f216088bd152f59ce0bbe488\";\n\n  src = fetchFromGitHub {\n    owner = \"nix-community\";\n    repo = \"tree-sitter-nix\";\n    rev = finalAttrs.version;\n    hash = \"sha256-Ib83CECi3hvm2GfeAJXIkapeN8rrpFQxCWWFFsIvB/Y=\";\n  };\n})\n```\n\n```bash\n\u003e tree result\nresult\n└── share\n    └── zed\n        └── grammars\n            └── nix.wasm\n```\n\n### Building Extensions Manually\n\nUse the `buildZedExtension` and `buildZedRustExtension` builder functions.\n\n#### buildZedExtension\n\n```nix\n{\n  buildZedExtension,\n  fetchFromGitHub,\n}:\n\nbuildZedExtension (finalAttrs: {\n  name = \"catppuccin-icons\";\n  version = \"1.19.0\";\n\n  src = fetchFromGitHub {\n    owner = \"catppuccin\";\n    repo = \"zed-icons\";\n    rev = \"v${finalAttrs.version}\";\n    hash = \"sha256-1S4I9fJyShkrBUqGaF8BijyRJfBgVh32HLn1ZoNlnsU=\";\n  };\n})\n```\n\n```bash\n\u003e tree result\nresult\n└── share\n    └── zed\n        └── extensions\n            └── catppuccin-icons\n                ├── extension.toml\n                ├── icons\n                │   └── ...\n                └── icon_themes\n                    └── catppuccin-icons.json\n```\n\n#### buildZedRustExtension\n\n```nix\n{\n  buildZedRustExtension,\n  fetchFromGitHub,\n  zed-nix-grammar,\n}:\n\nbuildZedRustExtension (finalAttrs: {\n  name = \"nix\";\n  version = \"0.1.1\";\n\n  src = fetchFromGitHub {\n    owner = \"zed-extensions\";\n    repo = \"nix\";\n    rev = \"v${finalAttrs.version}\";\n    hash = \"sha256-2+Joy2kYqDK33E51pfUSYlLgWLFLLDrBlwJkPWyPUoo=\";\n  };\n\n  useFetchCargoVendor = true;\n  cargoHash = \"sha256-F+qW+5SIiZNxdMSmtiwKj9j73Sd9uy5HZXGptcd3vSY=\";\n\n  grammars = [\n    zed-nix-grammar\n  ];\n})\n```\n\n```bash\n\u003e tree result\nresult\n└── share\n    └── zed\n        └── extensions\n            └── nix\n                ├── extension.toml\n                ├── extension.wasm\n                ├── grammars\n                │   └── nix.wasm -\u003e /nix/store/...\n                └── languages\n                    └── nix\n                        ├── brackets.scm\n                        ├── config.toml\n                        ├── highlights.scm\n                        ├── indents.scm\n                        ├── injections.scm\n                        └── outline.scm\n```\n\n## License\n\nThis project is licensed under the terms of the [GNU GPL v3.0](LICENSE), as it contains a re-implementation of [Zed's extension builder](https://github.com/zed-industries/zed/tree/main/crates/extension), which itself is licensed under the GNU GPL v3.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdusksystems%2Fnix-zed-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdusksystems%2Fnix-zed-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdusksystems%2Fnix-zed-extensions/lists"}