I’m trying to set up dev shells for projects where I can’t necessarily commit the flake configuration/lock, and am also using dotenv. For now I have the following in my .envrc:
use flake path:.
This works in that it doesn’t require my flake to be added to git, but it seems to copy my repo into the store, which is not what I want. Is there some way to a) not have to commit my flake and b) not have my employer’s proprietary code in my store?
Put the flake itself into a subdirectory? That way, it should only copy that subdirectory (containing only flake.nix and flake.lock) instead of the whole repo.
Also, you could add this directory name to a global .gitignore so that you don’t accidentally add/commit it.