1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Add assertion checking that Homebrew is installed

This commit is contained in:
Malo Bourgon 2020-12-08 10:17:09 -08:00
parent c3bddd3e91
commit 680c3e0c17

View file

@ -182,6 +182,19 @@ in
};
config = {
assertions = mkIf cfg.enable [
{
assertion = builtins.pathExists /usr/local/bin/brew;
message = ''
Homebrew not installed.
Please install Homebrew yourself before using the programs.brew-bundle module.
See installation instructions at: https://brew.sh
'';
}
];
programs.brew-bundle.brews =
optional (cfg.masApps != {}) "mas" ++
optional (cfg.whalebrews != []) "whalebrew";