generated docs with another tool

This commit is contained in:
2025-10-16 14:39:49 +02:00
parent 0fc42de009
commit 400be5d4a4
4 changed files with 182 additions and 433 deletions

View File

@@ -16,11 +16,10 @@
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
nix-options-doc = {
url = "github:Thunderbottom/nix-options-doc";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@@ -53,18 +52,16 @@
inputs.walker.homeManagerModules.default
inputs.zen-browser.homeModules.beta
];
docsUtil = import ./docs.nix;
docs = docsUtil.buildDocs {
inherit pkgs inputs modules;
};
in
{
homeManager = {
imports = modules ++ externalModules;
};
docs = docs.optionsCommonMark;
docs = pkgs.runCommand "docs" { } ''
${
inputs.nix-options-doc.outputs.packages."${system}".default
}/bin/nix-options-doc --path ${./homemanager} --out $out
'';
};
}