1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6
7 options = {
8
9 programs.info.enable = mkOption {
10 type = types.bool;
11 default = true;
12 description = ''
13 Whether to enable info pages and the <command>info</command> command.
14 '';
15 };
16
17 };
18
19
20 config = mkIf config.programs.info.enable {
21
22 environment.systemPackages = [ pkgs.texinfoInteractive ];
23
24 environment.pathsToLink = [ "/info" "/share/info" ];
25
26 environment.extraOutputsToInstall = [ "info" ];
27
28 };
29
30}