diff --git a/.envrc.recommended b/.envrc.recommended index bc17be32a..40ba7f241 100644 --- a/.envrc.recommended +++ b/.envrc.recommended @@ -1,5 +1,10 @@ # To use: echo "source_env .envrc.recommended" >> .envrc if has nix; then + + if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then + source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8=" + fi + use flake fi