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
If you enter the frontend directory, the environment will activate based on what's in the frontend/devenv.nix file.
So I could have enterShell defined as well as only have some dependencies on path when entering those directories. Also I would like to have different scripts with same name but activated for different sub folders.
Is this possible? Or are much of the devenv features lost when using flakes? Seems I cannot use the devenv commands for example and the devenv.yaml is ignored. If I run the devenv command it will generate the files and be separate from what is defined in the flake.nix.
The text was updated successfully, but these errors were encountered:
BTW, I tried switching to devenv without flakes and this is not the behavior I see. What I see is the same behavior as if I did imports = [ ./frontend/devenv.nix ]; inside the root devenv.nix.
I don't see the environment changing if I enter the frontend directory. Or does that need to have a full devenv environment with devenv.yaml, devenv.nix and .envrc as well to get this feature? I guess that would explain things. Since direnv is the thing that loads the environment.
As I did experience this:
If you enter the top-level project, the environment is combined with what's defined in backend/devenv.nix and frontend/devenv.nix. For example, devenv up will start both the frontend and backend processes.
I guess if that is the case none of the top-level stuff will be available in the sub-directory?
Is it possible to get what is described here:
https://devenv.sh/composing-using-imports/
When using flakes:
https://devenv.sh/guides/using-with-flakes/
Specifically I'm looking for this behavior:
So I could have
enterShell
defined as well as only have some dependencies on path when entering those directories. Also I would like to have different scripts with same name but activated for different sub folders.Is this possible? Or are much of the devenv features lost when using flakes? Seems I cannot use the
devenv
commands for example and thedevenv.yaml
is ignored. If I run thedevenv
command it will generate the files and be separate from what is defined in theflake.nix
.The text was updated successfully, but these errors were encountered: