Firebase Studio workspaces is not sourcing the Nix environment

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)