diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-05 14:16:33 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-05 14:53:27 +0200 |
commit | ab49ebe6fa2f502844cc6f655f02b00c052c6dd0 (patch) | |
tree | 5278821c4a453769c7b3492504dc969cacc7a4c9 /nixos/modules/programs/info.nix | |
parent | 5e5df88457d6a44da9e2856b82a51573aaa0d1da (diff) | |
download | nixlib-ab49ebe6fa2f502844cc6f655f02b00c052c6dd0.tar nixlib-ab49ebe6fa2f502844cc6f655f02b00c052c6dd0.tar.gz nixlib-ab49ebe6fa2f502844cc6f655f02b00c052c6dd0.tar.bz2 nixlib-ab49ebe6fa2f502844cc6f655f02b00c052c6dd0.tar.lz nixlib-ab49ebe6fa2f502844cc6f655f02b00c052c6dd0.tar.xz nixlib-ab49ebe6fa2f502844cc6f655f02b00c052c6dd0.tar.zst nixlib-ab49ebe6fa2f502844cc6f655f02b00c052c6dd0.zip |
Make it possible to disable "info"
Diffstat (limited to 'nixos/modules/programs/info.nix')
-rw-r--r-- | nixos/modules/programs/info.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixos/modules/programs/info.nix b/nixos/modules/programs/info.nix new file mode 100644 index 000000000000..be6439dca5ad --- /dev/null +++ b/nixos/modules/programs/info.nix @@ -0,0 +1,30 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + + options = { + + programs.info.enable = mkOption { + type = types.bool; + default = true; + description = '' + Whether to enable info pages and the <command>info</command> command. + ''; + }; + + }; + + + config = mkIf config.programs.info.enable { + + environment.systemPackages = [ pkgs.texinfoInteractive ]; + + environment.pathsToLink = [ "/info" "/share/info" ]; + + environment.extraOutputsToInstall = [ "info" ]; + + }; + +} |