feat(docs): control whether to link modules definition to git repository

This commit is contained in:
Sk7Str1p3 2026-07-26 19:36:07 +00:00
parent d566e9e937
commit d1d6468e19
Signed by: Sk7Str1p3
SSH key fingerprint: SHA256:GcXqjfo0IHK280c6aH9o5SmcOWyqMS8gjfOtDQ3gr/Q

View file

@ -9,6 +9,7 @@
"^docs/.*"
],
linkToRepo ? false,
}:
stdenvNoCC.mkDerivation {
@ -90,7 +91,11 @@ stdenvNoCC.mkDerivation {
in
{
name = relPath file;
url = "https://git.shellgod.icu/Sk7Str1p3/nixos/src/branch/main/${relPath file}";
url =
if linkToRepo then
"https://git.shellgod.icu/Sk7Str1p3/nixos/src/branch/main/${relPath file}"
else
"file://${decl}";
}
) opt.declarations;
};