mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 14:26:30 +02:00
23 lines
485 B
Nix
23 lines
485 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>home.packages</literal>.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf config.programs.man.enable {
|
|
home.packages = [ pkgs.man ];
|
|
home.extraOutputsToInstall = [ "man" ];
|
|
};
|
|
}
|