2017-10-15 16:01:41 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
programs.man.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = ''
|
|
|
|
Whether to enable manual pages and the <command>man</command>
|
|
|
|
command. This also includes "man" outputs of all
|
|
|
|
<literal>home.packages</literal>.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.programs.man.enable {
|
2017-10-18 00:33:31 +02:00
|
|
|
home.packages = [ pkgs.man ];
|
2017-10-15 16:01:41 +02:00
|
|
|
home.extraOutputsToInstall = [ "man" ];
|
|
|
|
};
|
|
|
|
}
|