1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 00:18:30 +02:00

man: add module

This commit is contained in:
Robert Helgesson 2017-10-15 16:01:41 +02:00
parent c07fa70d58
commit 3632478b8d
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
3 changed files with 33 additions and 0 deletions

View File

@ -31,6 +31,7 @@ let
./programs/htop.nix
./programs/info.nix
./programs/lesspipe.nix
./programs/man.nix
./programs/rofi.nix
./programs/ssh.nix
./programs/termite.nix

View File

@ -328,6 +328,16 @@ in
will be set only on zsh launch.
'';
}
{
time = "2017-10-15T13:59:47+00:00";
message = ''
A new module is available: 'programs.man'.
This module is enabled by default and makes sure that manual
pages are installed for packages in 'home.packages'.
'';
}
];
};
}

22
modules/programs/man.nix Normal file
View File

@ -0,0 +1,22 @@
{ 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-db ];
home.extraOutputsToInstall = [ "man" ];
};
}