Make it possible to disable "info"
This commit is contained in:
parent
5e5df88457
commit
ab49ebe6fa
|
@ -38,7 +38,6 @@ let
|
||||||
pkgs.strace
|
pkgs.strace
|
||||||
pkgs.su
|
pkgs.su
|
||||||
pkgs.time
|
pkgs.time
|
||||||
pkgs.texinfoInteractive
|
|
||||||
pkgs.utillinux
|
pkgs.utillinux
|
||||||
pkgs.which # 88K size
|
pkgs.which # 88K size
|
||||||
];
|
];
|
||||||
|
@ -105,7 +104,6 @@ in
|
||||||
"/etc/xdg"
|
"/etc/xdg"
|
||||||
"/etc/gtk-2.0"
|
"/etc/gtk-2.0"
|
||||||
"/etc/gtk-3.0"
|
"/etc/gtk-3.0"
|
||||||
"/info"
|
|
||||||
"/lib" # FIXME: remove and update debug-info.nix
|
"/lib" # FIXME: remove and update debug-info.nix
|
||||||
"/sbin"
|
"/sbin"
|
||||||
"/share/applications"
|
"/share/applications"
|
||||||
|
@ -113,7 +111,6 @@ in
|
||||||
"/share/doc"
|
"/share/doc"
|
||||||
"/share/emacs"
|
"/share/emacs"
|
||||||
"/share/icons"
|
"/share/icons"
|
||||||
"/share/info"
|
|
||||||
"/share/menus"
|
"/share/menus"
|
||||||
"/share/mime"
|
"/share/mime"
|
||||||
"/share/nano"
|
"/share/nano"
|
||||||
|
|
|
@ -66,8 +66,9 @@
|
||||||
./programs/command-not-found/command-not-found.nix
|
./programs/command-not-found/command-not-found.nix
|
||||||
./programs/dconf.nix
|
./programs/dconf.nix
|
||||||
./programs/environment.nix
|
./programs/environment.nix
|
||||||
./programs/freetds.nix
|
|
||||||
./programs/fish.nix
|
./programs/fish.nix
|
||||||
|
./programs/freetds.nix
|
||||||
|
./programs/info.nix
|
||||||
./programs/kbdlight.nix
|
./programs/kbdlight.nix
|
||||||
./programs/light.nix
|
./programs/light.nix
|
||||||
./programs/man.nix
|
./programs/man.nix
|
||||||
|
|
|
@ -13,4 +13,5 @@ with lib;
|
||||||
services.nixosManual.enable = mkDefault false;
|
services.nixosManual.enable = mkDefault false;
|
||||||
|
|
||||||
programs.man.enable = mkDefault false;
|
programs.man.enable = mkDefault false;
|
||||||
|
programs.info.enable = mkDefault false;
|
||||||
}
|
}
|
||||||
|
|
30
nixos/modules/programs/info.nix
Normal file
30
nixos/modules/programs/info.nix
Normal file
|
@ -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" ];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue