at 17.09-beta 558 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5{ 6 7 options = { 8 9 programs.man.enable = mkOption { 10 type = types.bool; 11 default = true; 12 description = '' 13 Whether to enable manual pages and the <command>man</command> command. 14 This also includes "man" outputs of all <literal>systemPackages</literal>. 15 ''; 16 }; 17 18 }; 19 20 21 config = mkIf config.programs.man.enable { 22 23 environment.systemPackages = [ pkgs.man-db ]; 24 25 environment.pathsToLink = [ "/share/man" ]; 26 27 environment.extraOutputsToInstall = [ "man" ]; 28 29 }; 30 31}