Gene Zhang
BlogTagsAbout
Published on
Monday, November 3, 2025

Use Nix & `flake.nix` to Set Up Your Environment

Authors
  • avatar
    Name
    Gene Zhang
    Twitter
  1. Install nix: https://nixos.org/download/
  2. Install direnv
  3. Install Nix Extension Pack extension in VS Code/Cursor.
  4. Create a direnv config file at the root of the project: .envrc(e.g., my-project/.envrc):
use flake
  1. Run direnv allow to allow the project to use the nix environment.
View on GitHub

Tags

mac

Previous Article

LeetCode Interview Preparation Crash Course
← Back to the blog
mailMailgithubGitHublinkedinLinkedin
Gene Zhang
•
© 2025
•
Gene Zhang's Blog
Tailwind Nextjs Theme