parent
933b6d97b4
commit
9d369c75ce
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
let cfg = config.programs.man;
|
||||||
|
in {
|
||||||
options = {
|
options = {
|
||||||
programs.man = {
|
programs.man = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
@ -15,6 +16,13 @@ with lib;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.man;
|
||||||
|
defaultText = literalExpression "pkgs.man";
|
||||||
|
description = "The man package to use.";
|
||||||
|
};
|
||||||
|
|
||||||
generateCaches = mkOption {
|
generateCaches = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -39,7 +47,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.programs.man.enable {
|
config = mkIf config.programs.man.enable {
|
||||||
home.packages = [ pkgs.man ];
|
home.packages = [ cfg.package ];
|
||||||
home.extraOutputsToInstall = [ "man" ];
|
home.extraOutputsToInstall = [ "man" ];
|
||||||
|
|
||||||
# This is mostly copy/pasted/adapted from NixOS' documentation.nix.
|
# This is mostly copy/pasted/adapted from NixOS' documentation.nix.
|
||||||
|
|
Loading…
Reference in a new issue