mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
b6af291c84
Note: this doesn't add man to systemPackages by default, only man-old builds on darwin and the system version works fine.
27 lines
505 B
Nix
27 lines
505 B
Nix
{ 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" ];
|
|
|
|
};
|
|
}
|