mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
add source_url installation
This commit is contained in:
parent
7e9ee77fca
commit
a5d469806c
1 changed files with 9 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue