at 16.09-beta 475 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 ''; 15 }; 16 17 }; 18 19 20 config = mkIf config.programs.man.enable { 21 22 environment.systemPackages = [ pkgs.man-db ]; 23 24 environment.pathsToLink = [ "/share/man" ]; 25 26 environment.extraOutputsToInstall = [ "man" ]; 27 28 }; 29 30}