From 09f97b357c2b92e266a488ec2b5d09b0d054dfd8 Mon Sep 17 00:00:00 2001 From: Julien Debon Date: Tue, 19 Oct 2021 13:47:02 +0200 Subject: [PATCH] Explain customizing the nix file name --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 77e99aa..6ee13ba 100644 --- a/README.md +++ b/README.md @@ -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