nixos/installer/tools: only enable tools if nix is enabled

This restores the old behavior of being able to remove
everything nix-related with just `nix.enable = false`.

Fixes #344083.
This commit is contained in:
K900
2024-09-24 08:19:36 +03:00
parent fc7bc3bca1
commit e9a78e0285

View File

@@ -216,7 +216,7 @@ in
imports = let
mkToolModule = { name, package ? pkgs.${name} }: { config, ... }: {
options.system.tools.${name}.enable = lib.mkEnableOption "${name} script" // {
default = true;
default = config.nix.enable;
internal = true;
};