chore: drop conda from the Linux and macOS profiles

Assisted-by: DeepSeek Harness 0.2.0-rc.2 (deepseek-flash)
This commit is contained in:
Ryan Yin authored and ryan4yin | 二花 committed 2026-10-16 21:18:33 +08:00
1 parent afa7a4c72e
commit 789b230780
5 files changed
+19 -53

No files matched your search

+2 -20
View File
@@ -3,24 +3,6 @@ let
envExtra = ''
export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
'';
# copied from the content generated by `conda init bash`
initContent = ''
arch=$(uname -m)
if [ "aarch64" = "$arch" ] || [ "arm64" = "$arch" ]; then
# >>> (miniforge)conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
if [ -f "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/Caskroom/miniforge/base/bin:$PATH"
fi
# <<< conda initialize <<<
elif [[ "x86_64" = "$arch" ]]; then
# do nothing
true
fi
'';
in
{
# Homebrew's default install location:
@@ -30,11 +12,11 @@ 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 + initContent);
bashrcExtra = lib.mkAfter envExtra;
};
programs.zsh = {
enable = true;
dotDir = "${config.xdg.configHome}/zsh";
inherit envExtra initContent;
inherit envExtra;
};
}