From 9bed82f82e5fb7f1f39f9f9e92fb910cb4c8d837 Mon Sep 17 00:00:00 2001 From: Franck Cuny <59291+fcuny@users.noreply.github.com> Date: Fri, 7 Feb 2025 07:57:56 -0800 Subject: consolidate homebrew configuration uninstall iTerm2 and will replace it with wezterm --- nix/machines/darwin-shared.nix | 16 +++++++++++++--- nix/users/fcuny/shell.nix | 1 - 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'nix') diff --git a/nix/machines/darwin-shared.nix b/nix/machines/darwin-shared.nix index 79f1933..3eab1e8 100644 --- a/nix/machines/darwin-shared.nix +++ b/nix/machines/darwin-shared.nix @@ -64,16 +64,26 @@ "/opt/homebrew/sbin" ]; + environment.variables = { + HOMEBREW_NO_ANALYTICS = "1"; + HOMEBREW_NO_INSECURE_REDIRECT = "1"; + HOMEBREW_NO_EMOJI = "1"; + HOMEBREW_NO_AUTO_UPDATE = "1"; + }; + homebrew = { enable = true; - onActivation.autoUpdate = true; - onActivation.upgrade = true; + + onActivation = { + autoUpdate = true; + cleanup = "uninstall"; + upgrade = true; + }; casks = [ "1password-cli" "docker" "element" - "iterm2" "transmission" "vlc" "wireshark" diff --git a/nix/users/fcuny/shell.nix b/nix/users/fcuny/shell.nix index bcac8c6..c022206 100644 --- a/nix/users/fcuny/shell.nix +++ b/nix/users/fcuny/shell.nix @@ -93,7 +93,6 @@ in home.sessionVariables = { EDITOR = "code --wait"; - HOMEBREW_NO_AUTO_UPDATE = 1; LESS = "-FRSXM"; LESSCHARSET = "utf-8"; PAGER = "less"; -- cgit v1.2.3