summaryrefslogtreecommitdiff
path: root/modules/mac/programs/homebrew/default.nix
blob: f341a4d54fc5f5557a954cb0820c69b411acc315 (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 = false;
    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 = "none";
      upgrade = true;
    };
  };
}