mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
fix(darwin): nix-darwin - activation option & zsh option
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
export PATH="$PATH:/opt/homebrew/bin:/usr/local/bin"
|
||||
'';
|
||||
# copied from the content generated by `conda init bash`
|
||||
initExtra = ''
|
||||
initContent = ''
|
||||
arch=$(uname -m)
|
||||
|
||||
if [ "aarch64" = "$arch" ] || [ "arm64" = "$arch" ]; then
|
||||
@@ -28,10 +28,10 @@ in {
|
||||
# in /opt/homebrew for Apple Silicon and /usr/local for Rosetta 2 to coexist and use bottles.
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
bashrcExtra = lib.mkAfter (envExtra + initExtra);
|
||||
bashrcExtra = lib.mkAfter (envExtra + initContent);
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
inherit envExtra initExtra;
|
||||
inherit envExtra initContent;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user