summaryrefslogtreecommitdiff
path: root/modules/darwin/desktop/homebrew.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/darwin/desktop/homebrew.nix')
-rw-r--r--modules/darwin/desktop/homebrew.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/darwin/desktop/homebrew.nix b/modules/darwin/desktop/homebrew.nix
new file mode 100644
index 0000000..1015ff9
--- /dev/null
+++ b/modules/darwin/desktop/homebrew.nix
@@ -0,0 +1,29 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.desktop.homebrew;
+ enable = config.desktop.enable && cfg.enable;
+in {
+ options.desktop.homebrew = {
+ enable = lib.mkEnableOption "Homebrew integration" // {default = true;};
+ };
+
+ config = lib.mkIf enable {
+ homebrew = {
+ enable = true;
+
+ onActivation = lib.mkDefault {
+ autoUpdate = true;
+ cleanup = "zap";
+ upgrade = true;
+ };
+
+ caskArgs = {
+ no_quarantine = true;
+ require_sha = false;
+ };
+ };
+ };
+}