From 661213432f662f5ed72a611a0d26b906afd25812 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Sun, 14 Apr 2024 11:27:46 -0700 Subject: [PATCH] docs: Recommend setting `moduleLocation` by default As `moduleLocation` can be used to avoid portential infinite loops issue, it would be nice to mention it from README. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d86a0a..6e98316 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,10 @@ then slide `mkFlake` between your outputs function head and body, ```nix outputs = inputs@{ flake-parts, ... }: - flake-parts.lib.mkFlake { inherit inputs; } { + flake-parts.lib.mkFlake { + inherit inputs; + moduleLocation = ./flake.nix; + } { flake = { # Put your original flake attributes here. };