diff --git a/.envrc b/.envrc index 4fb998c..de76301 100644 --- a/.envrc +++ b/.envrc @@ -7,5 +7,10 @@ watch_file flake.lock { # shell gc root dir mkdir -p "$(direnv_layout_dir)" - eval "$(nix print-dev-env --no-update-lock-file --no-write-lock-file --profile $(direnv_layout_dir)/flake-profile)" + if test -n "$(command -v nix3)"; then + nix=nix3 + else + nix=nix + fi + eval "$($nix print-dev-env --no-update-lock-file --no-write-lock-file --profile $(direnv_layout_dir)/flake-profile)" }