From e9a78e028574e810f5652e5ba8b1b36e962f486e Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 24 Sep 2024 08:19:36 +0300 Subject: [PATCH] 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. --- nixos/modules/installer/tools/tools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix index 0a01d6bb9b69..ee7c3e8c887f 100644 --- a/nixos/modules/installer/tools/tools.nix +++ b/nixos/modules/installer/tools/tools.nix @@ -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; };