The module envdir takes part in a kind of containerization of your development environment, likewise vagrant gives one another way of doing this, but more robust and without weird quirks of using Nix. Thus is appropriate to be able to use vagrant likewise one use envdir for development.