devenv icon indicating copy to clipboard operation
devenv copied to clipboard

How about placing devenv files in a single directory devenv or .devenv?

Open cavivie opened this issue 4 months ago • 2 comments

This is a very good tool that can help us manage the various development environments and tools of our large projects. We decided to adopt devenv. After starting to use it, I soon found that the number of files in the project root directory quickly exploded. Although we will only submit .envrc, devenv.lock, devenv.nix, devenv.yaml when submitting to the repository, we already have a large number of other similar files in the project root directory, which makes the root directory more complex. I hope devenv has a similar single directory management method like .devcontainer or flox to avoid the explosion of number. Is there a known solution that can do this, or is this not on the devenv roadmap at all?

cavivie avatar Oct 11 '25 10:10 cavivie

The devenv.* files currently have to live in the root of the repo. This is a restriction we unfortunately inherit from Nix Flakes, which devenv is built on.

We are actively working on removing our dependency on Flakes[^1]. That will open up the opportunity for supporting alternative config locations.

.envrc is an optional third-party integration. That's not something we can change.

[^1]: No, we're not removing support for using devenv with flakes.

sandydoo avatar Oct 18 '25 08:10 sandydoo

See #2061 for getting rid of .envrc.

domenkozar avatar Nov 02 '25 10:11 domenkozar