summaryrefslogtreecommitdiff
path: root/modules/mac/programs/homebrew/default.nix
blob: f8109efe33ffc5a81be6763334b461d55015fa6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, ... }:
{
  imports = [
    ./packages
    ./mas-apps.nix
    ./nix-homebrew.nix
  ];

  homebrew = {
    enable = true;
    taps = builtins.attrNames config.nix-homebrew.taps;

    # https://www.reddit.com/r/NixOS/comments/1f7qvj2/how_do_you_run_brew_update_on_a_nixdarwin_system/lla1fn5/
    onActivation = {
      autoUpdate = true;
      cleanup = "uninstall";
      upgrade = true;
    };
  };
}