cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
4.06k stars 305 forks source link

[ENHANCEMENT] Multiple devenv(-up) profiles/variants #1426

Open clotodex opened 1 week ago

clotodex commented 1 week ago

Concrete use case: I have a devenv.nix in the root of our repo to run everything together. Now depending on different development focus, we would love to either pass variables for devenv to evaluate (think --no-frontend) or to have multiple devenv profiles where we could e.g. say devenv up --backend-only. Similar to a flake's `nix develop '.#profile'.

I know that this should be possible with flakes, but since the rest of the team is not "nix-native" and we really enjoy the abstraction devenv brings, this would be a killer feature.

What would be necessary to build this up?

domenkozar commented 1 week ago

We'd need to use something like https://github.com/shakacode/steward to run our processes and then expose interface to start only specific ones