How i can refernce the .bashrc file in nix develop?

Hii , i want to reference the .bashrc file but that one that is located in $HOME, i have a temp .bashrc . that i want nix to use when nix develop. is there any way ?
because if i do source .my-temp-bashrc , its executing but when doing nix develop its taking the default $HOME .bashrc file

Consider using direnv, instead.

thanks for the suggestion :slight_smile: but its not loading the custom bsahrc i guess , can you verify is this correct ?

.envrc:

export BASH_ENV=.my-temp-bashrc

source $BASH_ENV


keepVars=("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "IN_NIX_SHELL" "NIX_SHELL_PRESERVE_PROMPT" "TZ" "PAGER" "NIX_BUILD_SHELL" "SHLVL" "NIX_PATH" "NIX_SSL_CERT_FILE" "NIX_SSL_CERT_DIR")


keepFlags=()


for v in "${keepVars[@]}"; do
    keepFlags+=(--keep "$v")
done

nix develop --ignore-environment "${keepFlags[@]}" ".#devShell"

Can you describe your goals with this, please?