diff --git a/.envrc b/.envrc deleted file mode 100644 index 1d953f4bd7359..0000000000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use nix diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 32b6307fb939d..ea599b8bd73bf 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -17,7 +17,15 @@ copying path '/nix/store/v2gvj8whv241nj4lzha3flq8pnllcmvv-ignore-5.2.0.tgz' from ... ``` -If [direnv](https://direnv.net/) is installed and the [hooks are configured](https://direnv.net/docs/hook.html) then the development environment can be _automatically instantiated_ thus removing the need to run `nix-shell` by hand! +If [direnv](https://direnv.net/) is installed and the [hooks are configured](https://direnv.net/docs/hook.html) then the development environment can be _automatically instantiated_ by creating the following `.envrc`, thus removing the need to run `nix-shell` by hand! + +``` +$ cd ~/code/coder +$ echo "use nix" >.envrc +$ direnv allow +``` + +Now, whenever you enter the project folder, `direnv` will prepare the environment for you: ``` $ cd ~/code/coder