You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying out devenv for use at my work, coming from direnv + use flake with a custom flake.nix. Previously, I had two flakes, one for TypeScript projects, and one for Python projects. Most of the different projects used the same tooling, so this had two advantages: fewer places to update when updating tooling; and the individual projects didn't know anything about direnv or flakes. I stuck .envrc in my global ignore, and no one else on the team had to worry about the fact that I was using nix to manage the dev-time dependencies.
I tried a similar approach with devenv, but it looks like use devenv ../nix-python only partially works: it successfully finds the files to watch, but the devenv assemble call does not know how to specify this flake_dir as the devenv root to the CLI, so it errors out. Is this a limitation of the current implementation, or am I holding it wrong?
For more context, one of the workflows I have to do often is a make clean in my project which doesn't know how to avoid clobbering the ignored devenv.* files. No big deal when it was just the .envrc file since that was trivially backed up.
The text was updated successfully, but these errors were encountered:
Thanks for the context, I'll report back on what I find that might work. I'm not able to do a simple monorepo, since my work involves work across a number of different monorepos already 😅 Maybe the parent-directory approach would work where I'd make a separate parent directory for each flavor of repo I need to work with (ts vs python vs rust). Maybe the simplest first approach is trying to import from other projects since there are definitely "anchor" projects that could "own" the devenv definition.
I'm trying out devenv for use at my work, coming from
direnv
+use flake
with a customflake.nix
. Previously, I had two flakes, one for TypeScript projects, and one for Python projects. Most of the different projects used the same tooling, so this had two advantages: fewer places to update when updating tooling; and the individual projects didn't know anything about direnv or flakes. I stuck.envrc
in my global ignore, and no one else on the team had to worry about the fact that I was using nix to manage the dev-time dependencies.I tried a similar approach with devenv, but it looks like
use devenv ../nix-python
only partially works: it successfully finds the files to watch, but thedevenv assemble
call does not know how to specify thisflake_dir
as the devenv root to the CLI, so it errors out. Is this a limitation of the current implementation, or am I holding it wrong?For more context, one of the workflows I have to do often is a
make clean
in my project which doesn't know how to avoid clobbering the ignoreddevenv.*
files. No big deal when it was just the.envrc
file since that was trivially backed up.The text was updated successfully, but these errors were encountered: