From d677e3e844e21789c6f39a90aacadf6dc777ca42 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 10 Feb 2025 20:14:17 +0000 Subject: [PATCH] nix-tools: only pass `config.nix.nixPath` through if `nix.enable` --- modules/nix/nix-darwin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nix/nix-darwin.nix b/modules/nix/nix-darwin.nix index a064f49..9c78f3a 100644 --- a/modules/nix/nix-darwin.nix +++ b/modules/nix/nix-darwin.nix @@ -4,7 +4,7 @@ let nix-tools = pkgs.callPackage ../../pkgs/nix-tools { inherit (config.system) profile; inherit (config.environment) systemPath; - nixPath = lib.concatStringsSep ":" config.nix.nixPath; + nixPath = lib.optionalString config.nix.enable (lib.concatStringsSep ":" config.nix.nixPath); }; darwin-uninstaller = pkgs.callPackage ../../pkgs/darwin-uninstaller { };