nixos/tools: add enable options to manual (#356992)
This commit is contained in:
@@ -218,7 +218,7 @@ in
|
|||||||
mkToolModule = { name, package ? pkgs.${name} }: { config, ... }: {
|
mkToolModule = { name, package ? pkgs.${name} }: { config, ... }: {
|
||||||
options.system.tools.${name}.enable = lib.mkEnableOption "${name} script" // {
|
options.system.tools.${name}.enable = lib.mkEnableOption "${name} script" // {
|
||||||
default = config.nix.enable && ! config.system.disableInstallerTools;
|
default = config.nix.enable && ! config.system.disableInstallerTools;
|
||||||
internal = true;
|
defaultText = "config.nix.enable && !config.system.disableInstallerTools";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.system.tools.${name}.enable {
|
config = lib.mkIf config.system.tools.${name}.enable {
|
||||||
|
|||||||
Reference in New Issue
Block a user