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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user