mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
docs: Update direnv docs for Nix and remove .envrc (#3790)
This commit is contained in:
committed by
GitHub
parent
567e750659
commit
f4a78c976f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user