From ebb60dc617e87427e186021943b67cff83656f1b Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 8 May 2023 17:42:03 +0200 Subject: [PATCH] flakeModules: Improve doc --- extras/flakeModules.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/extras/flakeModules.nix b/extras/flakeModules.nix index 3c76e2b..6468dcb 100644 --- a/extras/flakeModules.nix +++ b/extras/flakeModules.nix @@ -22,11 +22,13 @@ let description = '' flake-parts modules for use by other flakes. - If the flake defines only one module, it should be flakeModules.default. + If the flake defines only one module, it should be `flakeModules.default`. - You can not use this option in defining the flake's own `imports`. Instead, you can - put the module in question into its own file and reference it both in `imports` and - export it with this option. + You can not read this option in defining the flake's own `imports`. Instead, you can + put the module in question into its own file or let binding and reference + it both in `imports` and export it with this option. + + See [Dogfood a Reusable Module](../dogfood-a-reusable-module.md) for details and an example. ''; }; in