summary refs log tree commit diff
path: root/nixos/modules/programs/man.nix
blob: 201144ccb451b6102fa993a0da47bb928361398f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ 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.
      '';
    };

  };


  config = mkIf config.programs.man.enable {

    environment.systemPackages = [ pkgs.man ];

    environment.pathsToLink = [ "/share/man" ];

    environment.extraOutputsToInstall = [ "man" ];

  };

}