Explain customizing the nix file name

This commit is contained in:
Julien Debon 2021-10-19 13:47:02 +02:00 committed by GitHub
parent 53c44ae33a
commit 09f97b357c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. 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 ## Flakes support
nix-direnv also comes with a flake alternative. The code is tested and works however nix-direnv also comes with a flake alternative. The code is tested and works however