modules/output: add manDocsPackage

This commit is contained in:
Matt Sturgeon 2024-12-22 12:23:27 +00:00
parent 9487403532
commit 8938e09db1
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
5 changed files with 17 additions and 7 deletions

View file

@ -9,6 +9,7 @@ let
inherit (lib) types mkOption mkPackageOption;
inherit (lib) optional optionalAttrs;
builders = lib.nixvim.builders.withPkgs pkgs;
inherit (pkgs.stdenv.hostPlatform) system;
in
{
options = {
@ -146,6 +147,16 @@ in
readOnly = true;
visible = false;
};
manDocsPackage = mkOption {
type = types.package;
defaultText = lib.literalMD "`packages.<system>.man-docs` from Nixvim's flake";
description = ''
Nixvim's manpage documentation.
'';
readOnly = true;
visible = false;
};
};
};
@ -370,6 +381,8 @@ in
bat --language=lua "$init"
'';
};
manDocsPackage = config.flake.packages.${system}.man-docs;
};
# Set `wrapRc` and `impureRtp`s option defaults with even lower priority than `mkOptionDefault`