Hacker News new | ask | show | jobs
by francis-io 703 days ago
The author might have confused a few things, I don't think direnv and Nix are related. I've used direnv for years without touching Nix.
2 comments

Direnv and Nix are related in the sense that direnv has a `use flake` command that you can put in your .envrc to load the devShell defined in the project's flake.nix file. It's essentially just an automatic entry to the project's Nix-native devShells.

Edit: this is the only thing I use direnv for - I haven't used direnv without touching Nix.

The author is definitely confused. Direnv and Nix are not related.