diff --git a/modules/homebrew.nix b/modules/homebrew.nix index 4d6b2eca..c087cf98 100644 --- a/modules/homebrew.nix +++ b/modules/homebrew.nix @@ -54,7 +54,7 @@ in brewPrefix = mkOption { type = types.str; - default = "/usr/local/bin"; + default = if pkgs.stdenv.hostPlatform.darwinArch == "aarch64" then "/opt/homebrew/bin" else "/usr/local/bin"; description = '' Customize path prefix where executable of brew is searched for. '';