Install $ nix-env -f '<nixpkgs>' -iA nix-direnv direnv Configure Add to $HOME/.direnvrc: source $HOME/.nix-profile/share/nix-direnv/direnvrc Add to ~/.bashrc file: eval "$(direnv hook bash)" Run in your project: $ echo "use nix" >> .envrc $ direnv allow