From 0b1f711f2c35b5a7ec37c71154ee96e4d6b307b5 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Fri, 17 Oct 2025 16:42:01 +0200 Subject: [PATCH] docs: Fix missing direnv installation steps --- .../creating-your-first-clan.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/site/getting-started/creating-your-first-clan.md b/docs/site/getting-started/creating-your-first-clan.md index e06760f94..14ebf47c3 100644 --- a/docs/site/getting-started/creating-your-first-clan.md +++ b/docs/site/getting-started/creating-your-first-clan.md @@ -90,7 +90,23 @@ cd my-clan Now, activate the environment using one of the following methods. === "Automatic (direnv, recommended)" - **Prerequisite**: You must have [nix-direnv](https://github.com/nix-community/nix-direnv) installed. + + First you need to install [direnv](https://github.com/direnv/direnv) to allow auto-loading `.envrc` bash files on `cd` + ```bash + nix profile install nixpkgs#direnv + ``` + + Ontop of that you need the [nix-direnv](https://github.com/nix-community/nix-direnv) addon. + ```bash + nix profile install nixpkgs#nix-direnv + ``` + + - Direnv needs to [hook into your shell](https://direnv.net/docs/hook.html) to work. + You can do this by executing following command. The example below will setup direnv for `zsh` and `bash` + + ```bash + echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc && echo 'eval "$(direnv hook bash)"' >> ~/.bashrc && eval "$SHELL" + ``` Run `direnv allow` to automatically load the environment whenever you enter this directory. ```shellSession