diff options
Diffstat (limited to 'modules/programs')
| -rw-r--r-- | modules/programs/man.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/programs/man.nix b/modules/programs/man.nix new file mode 100644 index 0000000..949e393 --- /dev/null +++ b/modules/programs/man.nix @@ -0,0 +1,27 @@ +{ 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>systemPackages</literal>. + ''; + }; + + }; + + + config = mkIf config.programs.man.enable { + + environment.pathsToLink = [ "/share/man" ]; + + environment.extraOutputsToInstall = [ "man" ]; + + }; +} |
