mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-19 07:43:44 +01:00
fix(home/darwin): shell.nix
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{lib, ...}: let
|
||||
envExtra = lib.mkAfter ''
|
||||
envExtra = ''
|
||||
export PATH="$PATH:/opt/homebrew/bin:/usr/local/bin"
|
||||
'';
|
||||
# copied from the content generated by `conda init bash`
|
||||
initExtra = lib.mkAfter ''
|
||||
initExtra = ''
|
||||
arch=$(uname -m)
|
||||
|
||||
if [ "aarch64" = "$arch" ] || [ "arm64" = "$arch" ]; then
|
||||
@@ -28,7 +28,7 @@ in {
|
||||
# in /opt/homebrew for Apple Silicon and /usr/local for Rosetta 2 to coexist and use bottles.
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
bashrcExtra = envExtra + initExtra;
|
||||
bashrcExtra = lib.mkAfter (envExtra + initExtra);
|
||||
};
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user