Add package for generating rclone
docs
This commit is contained in:
parent
e3aa5bddbb
commit
aec08e97c8
20
flake.nix
20
flake.nix
|
@ -57,6 +57,26 @@
|
|||
];
|
||||
};
|
||||
in {
|
||||
packages = {
|
||||
rcloneDocs =
|
||||
let
|
||||
module = lib.evalModules {
|
||||
modules = [
|
||||
({ pkgs, ... }@args: {
|
||||
inherit (import ./lib/modules/rclone.nix args) options;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
optionsDoc = pkgs.nixosOptionsDoc {
|
||||
options = module.options;
|
||||
};
|
||||
in
|
||||
pkgs.runCommand "options-doc.md" {} ''
|
||||
cat ${optionsDoc.optionsCommonMark} >> $out
|
||||
'';
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShellNoCC (
|
||||
with pkgs;
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue