Add package for generating rclone
docs
This commit is contained in:
parent
e3aa5bddbb
commit
aec08e97c8
1 changed files with 20 additions and 0 deletions
20
flake.nix
20
flake.nix
|
@ -57,6 +57,26 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
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 (
|
devShells.default = pkgs.mkShellNoCC (
|
||||||
with pkgs;
|
with pkgs;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue