diff --git a/docs/docgen.nix b/docs/docgen.nix index 9522095..f9de95d 100644 --- a/docs/docgen.nix +++ b/docs/docgen.nix @@ -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; };