Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended structure for monorepo? #1703

Open
dsalaza4 opened this issue Feb 5, 2025 · 1 comment
Open

Recommended structure for monorepo? #1703

dsalaza4 opened this issue Feb 5, 2025 · 1 comment
Labels
question Further information is requested

Comments

@dsalaza4
Copy link

dsalaza4 commented Feb 5, 2025

Hi,

Looking at the documentation, it looks like you recommend using a root-level devenv.nix that provides shells for every project.

When I started playing with this tool I did not think of this approach but rather thought about having a devenv.nix for each project and then cd-ing to it in order to run devenv shell.

What do you folks think is a good structure for using devenv in a monorepo?

Thanks!

@dsalaza4 dsalaza4 added the question Further information is requested label Feb 5, 2025
@clotodex
Copy link
Contributor

clotodex commented Feb 7, 2025

Parts are discussed in #1662 and #998
Also have a look at https://devenv.sh/automatic-shell-activation/ to auto-activate the shell automatically on cd.

I am using this setup you described. I have a devenv.nix in each subproject. And for parent-projects I import the subprojects devenv.nix directly (to setup up things like complex devenv up etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants