diff --git a/README.md b/README.md index cc5e76c..0ea1b16 100644 --- a/README.md +++ b/README.md @@ -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: