docs: Allow to install man pages (#687)

This commit is contained in:
traxys 2023-11-06 16:26:23 +01:00 committed by GitHub
parent e45be89f12
commit 541b694873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 55 additions and 14 deletions

View file

@ -1,4 +1,7 @@
modules: {
{
modules,
self,
}: {
pkgs,
config,
lib,
@ -24,7 +27,9 @@ in {
config = mkIf cfg.enable (mkMerge [
{
environment.systemPackages = [cfg.finalPackage];
environment.systemPackages =
[cfg.finalPackage]
++ (lib.optional cfg.enableMan self.packages.${pkgs.system}.man-docs);
}
{
inherit (cfg) warnings assertions;