# Firebase Studio workspaces is not sourcing the Nix environment

**URL:** <https://community.firebasestudio.dev/t/firebase-studio-workspaces-is-not-sourcing-the-nix-environment/13889>\
**Category:** General\
**Created:** [May 26, 2025, 10:18pm UTC](https://community.firebasestudio.dev/t/firebase-studio-workspaces-is-not-sourcing-the-nix-environment/13889 "2025-05-26T22:18:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_SenthilNatha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/karthik_senthilnatha/32/7106_2.png) [@Karthik\_SenthilNatha](https://community.firebasestudio.dev/u/Karthik_SenthilNatha)\
**Post date:** [May 26, 2025, 10:18pm UTC](https://community.firebasestudio.dev/t/firebase-studio-workspaces-is-not-sourcing-the-nix-environment/13889/1 "2025-05-26T22:18:10Z")

</div>

My terminal in Firebase Studio workspaces is not sourcing the Nix environment defined in `.idx/dev.nix`. `which python` always outputs `/usr/bin/python` instead of a `/nix/store/` path, and I cannot use packages defined in `dev.nix` like `flask` and `pymongo` (getting `ModuleNotFoundError`) \* The steps you have already taken:

- You have a `.idx/dev.nix` file with `pkgs.python311`, `pkgs.python311Packages.flask`, and `pkgs.python311Packages.pymongo` in the `packages` list (you can even share the content of your `dev.nix`).
- You have saved the file and clicked “Rebuild Environment”.
- You have closed and opened new terminal sessions after rebuilding.
- You have tried this in a brand new Firebase Studio workspace with a minimal `dev.nix` file.
- Any error messages you see related to environment rebuilding or in the terminal (like `ModuleNotFoundError` or the `pip` error)
