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,
@ -33,7 +36,11 @@ in {
config =
mkIf cfg.enable
(mkMerge [
{environment.systemPackages = [cfg.finalPackage];}
{
environment.systemPackages =
[cfg.finalPackage]
++ (lib.optional cfg.enableMan self.packages.${pkgs.system}.man-docs);
}
(mkIf (!cfg.wrapRc) {
environment.etc = files;
environment.variables."VIM" = "/etc/nvim";