mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Merge pull request #116 from sir4ur0n/patch-1
Explain customizing the nix file name
This commit is contained in:
commit
d26fc52f8d
1 changed files with 6 additions and 0 deletions
|
|
@ -159,6 +159,12 @@ $ direnv allow
|
|||
|
||||
If you haven't used direnv before, make sure to [hook it into your shell](https://direnv.net/docs/hook.html) first.
|
||||
|
||||
### Using a non-standard file name
|
||||
You may use a different file name than `shell.nix` or `default.nix` by passing the file name in `.envrc`, e.g.:
|
||||
```console
|
||||
$ echo "use nix foo.nix" >> .envrc
|
||||
```
|
||||
|
||||
## Flakes support
|
||||
|
||||
nix-direnv also comes with a flake alternative. The code is tested and works however
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue