For anyone that has direnv installed, the .envrc files will automatically be attempted to be executed once you enter the directory it's in. This is pretty annoying and also quite invasive.
I think it's better practice to have a .envrc.example or .envrc.dist that the user can then cp .envrc.dist .envrc to his own, to opt-in to automatic nix-shell etc.
For anyone that has direnv installed, the
.envrcfiles will automatically be attempted to be executed once you enter the directory it's in. This is pretty annoying and also quite invasive.I think it's better practice to have a
.envrc.exampleor.envrc.distthat the user can thencp .envrc.dist .envrcto his own, to opt-in to automatic nix-shell etc.