blob: 93fe4ad4963e1950338f178a1f3dda840fb9fef4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ config, lib, ... }:
let
cfg = config.desktop.homebrew;
in
{
options.desktop.homebrew = {
enable = lib.mkEnableOption "Homebrew integration" // {
default = config.desktop.enable;
};
};
config = lib.mkIf cfg.enable {
homebrew = {
enable = true;
onActivation = lib.mkDefault {
autoUpdate = true;
cleanup = "zap";
upgrade = true;
};
caskArgs = {
no_quarantine = true;
require_sha = false;
};
};
};
}
|