{ config, lib, pkgs, ... }: with lib; { options = { programs.man.enable = mkOption { type = types.bool; default = true; description = '' Whether to enable manual pages and the man command. ''; }; }; config = mkIf config.programs.man.enable { environment.systemPackages = [ pkgs.man-db ]; environment.pathsToLink = [ "/share/man" ]; environment.extraOutputsToInstall = [ "man" ]; }; }