Only set INSTALLING_HOMEBREW if homebrew module is enabled

Fallout of #47.

Fixes #48.
This commit is contained in:
Zhaofeng Li
2024-11-20 15:11:27 -07:00
parent 5eb00c5e01
commit 333d5b28cc
+2 -2
View File
@@ -502,8 +502,8 @@ in {
# disable the install homebrew check
# see https://github.com/LnL7/nix-darwin/pull/1178 and https://github.com/zhaofengli/nix-homebrew/issues/45
system.checks.text = lib.mkBefore ''
system.checks.text = lib.mkIf config.homebrew.enable (lib.mkBefore ''
INSTALLING_HOMEBREW=1
'';
'');
};
}