Files
nix-config/modules/darwin/brew.nix
2023-01-04 08:02:19 -05:00

58 lines
991 B
Nix

{
config,
lib,
pkgs,
...
}: let
checkBrew = "command -v brew > /dev/null";
in {
environment = {
extraInit = ''
${checkBrew} || >&2 echo "brew is not installed (install it via https://brew.sh)"
'';
};
homebrew = {
enable = true;
onActivation.autoUpdate = false;
onActivation.upgrade = false;
global = {
brewfile = true;
};
brews = [
"bensadeh/circumflex/circumflex"
"coreutils"
"gnu-sed"
"gnu-tar"
"netdata"
"node"
"podman"
"stats"
"universal-ctags"
];
casks = [
"authy"
"dbeaver-community"
"font-fira-code-nerd-font"
"font-hack-nerd-font"
"karabiner-elements"
"lulu"
"maccy"
"postman"
"rectangle"
"visual-studio-code"
];
taps = [
"homebrew/bundle"
"homebrew/cask"
"homebrew/cask-fonts"
"homebrew/cask-versions"
"homebrew/core"
"homebrew/services"
];
};
}