summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2022-01-17 21:42:15 +0100
committerGitHub <noreply@github.com>2022-01-17 21:42:15 +0100
commit13d129434dd3ed179ae2f515ebd0dbd3a82a9be4 (patch)
treeda8ce76f0a247426b7b2599b995270677ea3e084 /modules
parent9a388b6b56d079090ff8e9998e2d4a63e6886f01 (diff)
parent7f68974ea4e86f8827e6bcc3d26ad356a1e4f505 (diff)
Merge pull request #418 from purcell/smarter-brew-prefix-default
Set brewPrefix defaults according to platform
Diffstat (limited to 'modules')
-rw-r--r--modules/homebrew.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/homebrew.nix b/modules/homebrew.nix
index 4d6b2ec..c087cf9 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 <command>brew</command> is searched for.
'';