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,
@ -32,7 +35,11 @@ in {
config =
mkIf cfg.enable
(mkMerge [
{home.packages = [cfg.finalPackage];}
{
home.packages =
[cfg.finalPackage]
++ (lib.optional cfg.enableMan self.packages.${pkgs.system}.man-docs);
}
(mkIf (!cfg.wrapRc) {
xdg.configFile = files;
})