summaryrefslogtreecommitdiff
path: root/modules/programs
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-05-12 22:11:13 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-05-12 22:17:38 +0200
commitb6af291c84da5970d9db165c6cb2834455dc04e8 (patch)
treedaef5b7b940d4dd546e55bae6297868280e26faa /modules/programs
parent1546ea0617e4219612f08c6cd933fb0df2680ca6 (diff)
add programs.man module
Note: this doesn't add man to systemPackages by default, only man-old builds on darwin and the system version works fine.
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/man.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/programs/man.nix b/modules/programs/man.nix
new file mode 100644
index 0000000..949e393
--- /dev/null
+++ b/modules/programs/man.nix
@@ -0,0 +1,27 @@
+{ 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" ];
+
+ };
+}