- Published on
Use Nix & `flake.nix` to Set Up Your Environment
- Authors

- Name
- Gene Zhang
- Install nix: https://nixos.org/download/
- Install direnv
- Install Nix Extension Pack extension in VS Code/Cursor.
- Create a direnv config file at the root of the project:
.envrc(e.g.,my-project/.envrc):
use flake
- Run
direnv allowto allow the project to use the nix environment.