Open cyberjar09 opened 5 months ago
See nested
in examples how that's currently done
I dont see anything named nested
in the examples 🤔
I think @cyberjar09 wants to run devenv shell
in a nested folder and import a devenv.nix
from the parent directory. We have checks in place to not allow imports starting with ../
, which I assume is due to the restriction imposed by Nix flakes. Everything that's used to evaluate the shell must be tracked by git and in the current directory or lower.
My use-case for this is to have a common postgres server running in the parent directory's devenv.nix
and then in a sub-folder (micro-service) connect to it while having access to the psql
cli.
What I'd do then is:
devenv up # starts server
cd subfolder
psql -d db -f file.sql
Would be cool if this could be supported.
not sure if im doing something unintended here
example project:
devenv.yaml
devenv.nix
nested/devenv.nix
nexted/devenv.yaml
when I go into the
nested
folder anddevenv shell
I get an errorerror: devenv: ../ is not supported for imports
my use case is that different terraform folders contain their own version of terraform, but they can inherit from the parent folderdevenv.nix