Add docs
This commit is contained in:
parent
2195c7a850
commit
cc67ca420c
5 changed files with 20 additions and 3 deletions
|
|
@ -1,7 +1,22 @@
|
|||
# with friendly help by stylix: https://github.com/danth/stylix/blob/master/docs/default.nix
|
||||
{ pkgs, build_systems, ... }:
|
||||
|
||||
let
|
||||
makeOptionsDoc = configuration: pkgs.nixosOptionsDoc { inherit (configuration) options lib; };
|
||||
makeOptionsDoc =
|
||||
configuration:
|
||||
pkgs.nixosOptionsDoc {
|
||||
inherit (configuration) options;
|
||||
|
||||
# Filter out any options not beginning with `stylix`
|
||||
transformOptions =
|
||||
option:
|
||||
option
|
||||
// {
|
||||
visible =
|
||||
option.visible
|
||||
&& (builtins.elemAt option.loc 0 == "conf" || builtins.elemAt option.loc 0 == "mods");
|
||||
};
|
||||
};
|
||||
example = makeOptionsDoc (build_systems [ "example" ] ../example/.)."example";
|
||||
in
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue