mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
c20403631d
Fixes #10270.
31 lines
464 B
Nix
31 lines
464 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.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
config = mkIf config.programs.man.enable {
|
|
|
|
environment.systemPackages = [ pkgs.man ];
|
|
|
|
environment.pathsToLink = [ "/share/man" ];
|
|
|
|
environment.outputsToLink = [ "man" ];
|
|
|
|
};
|
|
|
|
}
|