Get environment restoration working

This commit is contained in:
Bryan Bennett 2023-12-22 08:32:07 -05:00
parent b7413a17f1
commit 7ec4cfb172
No known key found for this signature in database
GPG key ID: EE149E4215408DE9

View file

@ -39,7 +39,11 @@ use_flake_env() {
local old_xdg_data_dirs=${XDG_DATA_DIRS:-}
local ld=$(direnv_layout_dir)
eval $(@flake_env@ "$1" "$ld")
export direnv
eval "$(@flake_env@ "$1" "$ld")"
export -n direnv
# `nix print-dev-env` will create a temporary directory and use it as TMPDIR
# We cannot rely on this directory being available at all times,