From e2f3ae8c43c8bc14197bccef87233aef65840bdd Mon Sep 17 00:00:00 2001 From: Nikita Krasnov Date: Fri, 2 May 2025 15:03:47 +0300 Subject: [PATCH] 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. --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f0b9b2b..d2c338f 100644 --- a/README.md +++ b/README.md @@ -22,10 +22,15 @@ CPU load). ## Installation -> **Heads up**: 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: +> [!WARNING]\ +> We assume that [direnv](https://direnv.net/) is installed properly because +> nix-direnv IS NOT a replacement for regular direnv _(only some of its +> 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:
Via home-manager (Recommended)