mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
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.
This commit is contained in:
parent
9126214d0a
commit
661213432f
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,10 @@ then slide `mkFlake` between your outputs function head and body,
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
outputs = inputs@{ flake-parts, ... }:
|
outputs = inputs@{ flake-parts, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake {
|
||||||
|
inherit inputs;
|
||||||
|
moduleLocation = ./flake.nix;
|
||||||
|
} {
|
||||||
flake = {
|
flake = {
|
||||||
# Put your original flake attributes here.
|
# Put your original flake attributes here.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue