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:
parent
c3bddd3e91
commit
680c3e0c17
1 changed files with 13 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue