Add details for nix profile installation method

Previous version of these instructions did not make it very clear that
you need to have nix-direnv _together_ with regular direnv.

As a newcomer, I had to learn this the hard way and spend some time
debugging this. I'm sure this will be very helpful to other people like
me.
This commit is contained in:
Nikita Krasnov 2025-05-02 15:03:47 +03:00
parent 74adaf6802
commit e2f3ae8c43
No known key found for this signature in database
GPG key ID: 97194DB3A4C77F31

View file

@ -22,10 +22,15 @@ CPU load).
## Installation ## Installation
> **Heads up**: nix-direnv requires a modern Bash. MacOS ships with bash 3.2 > [!WARNING]\
> from 2007. As a work-around we suggest that macOS users install `direnv` via > We assume that [direnv](https://direnv.net/) is installed properly because
> Nix or Homebrew. There are different ways to install nix-direnv, pick your > nix-direnv IS NOT a replacement for regular direnv _(only some of its
> favourite: > functionality)_.
> [!NOTE]\
> nix-direnv requires a modern Bash. MacOS ships with bash 3.2 from 2007. As a
> work-around we suggest that macOS users install `direnv` via Nix or Homebrew.
> There are different ways to install nix-direnv, pick your favourite:
<details> <details>
<summary> Via home-manager (Recommended)</summary> <summary> Via home-manager (Recommended)</summary>