Can I create Datasource Variable for Grafana Infinity?

Hi There

I am trying to figure out if there is a possibility to create a dynamic Datasource for Grafana Infinity, so that i can switch the Panel Data between the Environments.
I mean when you go into a Dashboard - Settings - Variables you can create a Custom Variable for your Environment and link it to a Datasource Variable for example /Prometheus_$Environment/ . Can I do this for the Plugin Infinity? I tried without a Result.

Thanks for Help.

What are these environments? dev qa staging production?