What exactly would that .envrc look like? Is this a feature added by the direnv-nix integration thing or am I unaware of a nix environment variable for input overrides?
Asking because I have this exact workflow all over the place, when depending on my own flakes, and being able to skip the constant --override-input invocations would be really handy.
I think it cannot (easily) be done using nix-direnv since it doesn’t have a way to pass flags to the various nix commands used behind the scenes. However, @brendanzab has this in their .envrc:
How do you read the contents of my-project ? for example I want to use flakes for python projects and I am using mach-nix to read requirements.txt file.
git add requirements.txt, nix flakes require the file to be in version control if you’re using version control. It does this for reproducibility and so that it can exclude .gitignored files from the store import.
There’s some issues about getting better error messages for that.
Just to suggest another possible workaround. You can also place the flake.nix in another directory and refer to that directory in envrc: use flake ~/projects/myflakes#myproject. Allows me to reuse devshell modules for different projects more easily, but it doesn’t allow me to refer to local project files (afaik).