homebrew.casks

List of Homebrew casks to install.

Casks defined as strings, e.g., "google-chrome", are a shorthand for:

{ name = "google-chrome"; }

Type
list of ((submodule) or string convertible to it)
Default
[ ]
Example
# Adapted from https://docs.brew.sh/Brew-Bundle-and-Brewfile
[
  # `brew install --cask`
  "google-chrome"

  # `brew install --cask --appdir=~/my-apps/Applications`
  {
    name = "firefox";
    args = { appdir = "~/my-apps/Applications"; };
  }

  # always upgrade auto-updated or unversioned cask to latest version even if already installed
  {
    name = "opera";
    greedy = true;
  }

  # `brew install --cask`, run a post-install command on install or upgrade
  {
    name = "google-cloud-sdk";
    postinstall = "\${HOMEBREW_PREFIX}/bin/gcloud components update";
  }
]
Declared
<nix-darwin/modules/homebrew.nix>