From 94e04bfbcc055d05f6c4e8cd008749dce3ebdd6d Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Tue, 17 Sep 2024 00:45:53 +0800 Subject: [PATCH] fix(home/darwin): shell.nix --- home/darwin/shell.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/darwin/shell.nix b/home/darwin/shell.nix index 83fc3900..dc84256b 100644 --- a/home/darwin/shell.nix +++ b/home/darwin/shell.nix @@ -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;