mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
18 lines
528 B
Nix
18 lines
528 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
optEval = lib.evalModules { modules = [
|
|
./modules/options.nix
|
|
]; };
|
|
optionsDoc = pkgs.nixosOptionsDoc {
|
|
options = builtins.removeAttrs optEval.options [ "_module" ];
|
|
};
|
|
replaceLinkNamesPattern = ''sR\[/nix/store/[a-z0-9]+-source/R[../R'';
|
|
replaceLinkContentsPattern = ''sR\(file:///nix/store/[a-z0-9]+-source/R(../R'';
|
|
in
|
|
pkgs.runCommand "options-doc.md" {} ''
|
|
sed -r '${replaceLinkNamesPattern};${replaceLinkContentsPattern}' '${optionsDoc.optionsCommonMark}' >> $out''
|