From c2e9225b3d3615a718f8f796797775fefca9910f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Mar 2021 00:01:09 +0000 Subject: [PATCH] home: documentation: make it enable-able --- home/documentation.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/home/documentation.nix b/home/documentation.nix index a85764e..e31665f 100644 --- a/home/documentation.nix +++ b/home/documentation.nix @@ -1,9 +1,17 @@ -{ ... }: +{ config, lib, ... }: +let + cfg = config.my.home.documentation; +in { + options.my.home.documentation = with lib.my; { + enable = mkDisableOption "documentation integration"; + }; + # Add documentation for user packages - programs.man = { - enable = true; + config.programs.man = { + enable = cfg.enable; generateCaches = true; # Enables the use of `apropos` etc... }; - programs.info.enable = true; + + config.programs.info.enable = cfg.enable; }