aboutsummaryrefslogtreecommitdiff
path: root/home-manager/modules/programs/man.nix
blob: 0ed376780d4d04ceaba02ad7e05699a03e9eeb4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ 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 {
    home.packages = [ pkgs.man ];
    home.extraOutputsToInstall = [ "man" ];
  };
}