Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

direnv does exactly what you describe (and a lot more) using flake.nix. cd into the directory and it automatically runs. I use it in every single project/repository to set environment variables and install project-specific dependencies locked to specific versions.


> direnv does exactly what you describe (and a lot more) using flake.nix

Direnv is awesome! Note, thought, that it does not depend on Nix, just a Unix-like OS and a supported shell: https://direnv.net/#prerequisites




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: