From 86294113824ccfd14b0deccc33ed7aeec4088688 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 25 Nov 2024 16:34:59 +0100 Subject: [PATCH] Add onActivation settings to aarch64-darwin/m4 Introduce 'cleanup', 'autoUpdate', and 'upgrade' options under the onActivation section for improved manageability. Additionally, remove unused homebrew configuration from modules/darwin/nix/default.nix. --- modules/darwin/nix/default.nix | 5 ----- systems/aarch64-darwin/m4/default.nix | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/darwin/nix/default.nix b/modules/darwin/nix/default.nix index 78b7cf8..1ea29a7 100644 --- a/modules/darwin/nix/default.nix +++ b/modules/darwin/nix/default.nix @@ -24,11 +24,6 @@ in nix-prefetch-git ]; - homebrew = { - enable = true; - onActivation.autoUpdate = false; - }; - nix = let users = [ diff --git a/systems/aarch64-darwin/m4/default.nix b/systems/aarch64-darwin/m4/default.nix index 1099a0c..2d06abd 100644 --- a/systems/aarch64-darwin/m4/default.nix +++ b/systems/aarch64-darwin/m4/default.nix @@ -10,6 +10,11 @@ with lib.metacfg; "mas" ]; masApps = { }; + onActivation = { + cleanup = "zap"; + autoUpdate = true; + upgrade = true; + }; }; metacfg = {