Skip to content

Commit 170b441

Browse files
committed
flake-module.nix: Identify module with _file
The documentation tooling needs locations in order to split the docs into pages. This means that the module system needs to see a file name at some point, which usually happens by importing a path. This `flake-module.nix` is technically not a module, but a function to an anonymous module. Hence, we need to remind the module system of the location.
1 parent 5d290d6 commit 170b441

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nix/flake-module.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ let
88
types;
99
in
1010
{
11+
_file = __curPos.file;
1112
imports = [
1213
flake-root.flakeModule
1314
];

0 commit comments

Comments
 (0)