From b6af291c84da5970d9db165c6cb2834455dc04e8 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Fri, 12 May 2017 22:11:13 +0200 Subject: 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. --- modules/programs/man.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/programs/man.nix (limited to 'modules/programs') 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 man command. + This also includes "man" outputs of all systemPackages. + ''; + }; + + }; + + + config = mkIf config.programs.man.enable { + + environment.pathsToLink = [ "/share/man" ]; + + environment.extraOutputsToInstall = [ "man" ]; + + }; +} -- cgit v1.2.3