# Understanding the Relationship Between dev.nix and Project IDX Workspace

**URL:** <https://community.firebasestudio.dev/t/understanding-the-relationship-between-dev-nix-and-project-idx-workspace/1479>\
**Category:** General\
**Created:** [August 15, 2024, 11:26am UTC](https://community.firebasestudio.dev/t/understanding-the-relationship-between-dev-nix-and-project-idx-workspace/1479 "2024-08-15T11:26:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jasper\_Duizendstra](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/jasper_duizendstra/32/527_2.png) [@Jasper\_Duizendstra](https://community.firebasestudio.dev/u/Jasper_Duizendstra)\
**Post date:** [August 15, 2024, 11:26am UTC](https://community.firebasestudio.dev/t/understanding-the-relationship-between-dev-nix-and-project-idx-workspace/1479/1 "2024-08-15T11:26:31Z")

</div>

I’m using Project IDX and have created a workspace that is saved as a `.code-workspace` file. My project also uses Nix for environment management, and I have a `dev.nix` file that sets up the development environment.

However, I’m not sure how Project IDX detects and uses the `dev.nix` file within the workspace. When I load the workspace, it often asks for a rebuild, which makes me think it might not be finding the `dev.nix` file correctly.

Can someone explain how the `dev.nix` file should be integrated with a Project IDX workspace? Where should I place the `dev.nix` file, and how can I ensure that the workspace correctly detects and uses it?

---

<div class="post-metadata">

**Author:** ![jam](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/jam/32/1485_2.png) [@jam](https://community.firebasestudio.dev/u/jam)\
**Post date:** [August 19, 2024, 8:02pm UTC](https://community.firebasestudio.dev/t/understanding-the-relationship-between-dev-nix-and-project-idx-workspace/1479/2 "2024-08-19T20:02:11Z")

</div>

there is this doc,

> **[Dev.nix रेफ़रंस  |  Project IDX  |  Google for Developers](https://developers.google.com/idx/guides/devnix-reference?hl=hi)**

Sometimes when environment rebuild wont show after editing dev.nix just doing a page refresh will get it to show up.

However, I have not observed idx requesting to rebuild the environment unless that file has been modified.

---

<div class="post-metadata">

**Author:** ![Shin18](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/shin18/32/6231_2.png) [@Shin18](https://community.firebasestudio.dev/u/Shin18)\
**Post date:** [May 11, 2025, 6:41pm UTC](https://community.firebasestudio.dev/t/understanding-the-relationship-between-dev-nix-and-project-idx-workspace/1479/3 "2025-05-11T18:41:42Z")

</div>

the option to rebuild environment show sup for me, but clicking on the button does nothing
