{ config, lib, pkgs, ... }: with lib; { options = { programs.man.enable = mkOption { type = types.bool; default = true; description = '' Whether to enable manual pages and the man command. This also includes "man" outputs of all home.packages. ''; }; }; config = mkIf config.programs.man.enable { home.packages = [ pkgs.man ]; home.extraOutputsToInstall = [ "man" ]; }; }