add source_url installation

This commit is contained in:
Jörg Thalheim 2020-12-31 07:54:49 +01:00
parent 7e9ee77fca
commit a5d469806c
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -19,6 +19,7 @@ There are different ways to install nix-direnv, pick your favourite:
- via configuration.nix in NixOS
- with nix-env
- from source
- with direnv source_url
### Via home-manager
@ -115,6 +116,14 @@ source $HOME/nix-direnv/direnvrc
You also need to set `keep-outputs` and `keep-derivations` to nix.conf as described in the installation
via home-manager section.
### Direnv source_url
Put the following line in your .envrc
```bash
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.2/direnvrc" "sha256-2SLi51C+LR48zKe7jzvz9ftETwWZcQVUR1oSYJslCZ0="
```
## Usage example
Either add `shell.nix` or a `default.nix` to the same directory: