feat(darwin): add brew to path
This commit is contained in:
parent
bebc1ed649
commit
e72a8a0586
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue