# Fail to add extensions to Gram

**URL:** https://discourse.nixos.org/t/fail-to-add-extensions-to-gram/78466
**Category:** Help
**Created:** [June 22, 2026, 7:31pm UTC](https://discourse.nixos.org/t/fail-to-add-extensions-to-gram/78466 "2026-06-22T19:31:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![smudgebun](https://discourse.nixos.org/user_avatar/discourse.nixos.org/smudgebun/32/36281_2.png) [@smudgebun](https://discourse.nixos.org/u/smudgebun)
#### Post date: [June 29, 2026, 12:29am UTC](https://discourse.nixos.org/t/fail-to-add-extensions-to-gram/78466/2 "2026-06-29T00:29:29Z")

</div>

I just spent today figuring this out. Personally I made a fork of the [`programs.zed-editor`](https://github.com/nix-community/home-manager/blob/4ad9aaae70c9aaab504127f926c0fa9cfbc2b365/modules/programs/zed-editor.nix) home manager module and I’ve been using that ([here](https://codeberg.org/smudge/nix-lotus/src/branch/main/modules/home/gram/default.nix) if you’d like to reference it).

I also wrote up a [Gram NixOS Wiki page](https://wiki.nixos.org/wiki/Gram) with [instructions](https://wiki.nixos.org/wiki/Gram#Installing_Extensions) for other ways to add the needed dependencies to build extensions. It’s structured a little weird but hopefully it’s helpful. I think I tested all of the options listed but it’s possible I missed something or there’s syntax errors. Lmk if you run into any problems.

And I believe you are correct that right now Gram does not support the `auto_install_extensions` config property.

If you just want to use `rustup` I think (though I’m not very familiar with Rust) the only clean way to set it up is undeclarative, running `rustup default ${toolchain-branch}`, like as it shows in the example `rustup default stable`, and I think you will also need [`clang`](https://search.nixos.org/packages?show=clang) installed or you will get a `cc` error iirc.

---

_[View the full topic](https://discourse.nixos.org/t/fail-to-add-extensions-to-gram/78466)._
