Merge pull request #116 from sir4ur0n/patch-1

Explain customizing the nix file name
This commit is contained in:
Jörg Thalheim 2021-10-20 09:43:18 +01:00 committed by GitHub
commit d26fc52f8d
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.
### 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