feat(darwin): add brew to path

This commit is contained in:
Mohammad Rafiq 2025-07-14 15:22:45 +08:00
parent bebc1ed649
commit e72a8a0586
No known key found for this signature in database

View file

@ -16,4 +16,17 @@ in
"slack" "slack"
]; ];
}; };
flake.modules.homeManager.rafiq = {
# make sure brew is on the path for M1
programs.zsh.initContent = ''
if [[ $(uname -m) == 'arm64' ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
'';
programs.fish.shellInit = ''
if test (uname -m) = "arm64"
eval (/opt/homebrew/bin/brew shellenv)
end
'';
};
} }