diff --git a/templates/flake-parts/.envrc b/templates/flake-parts/.envrc index 70ce5295f..f829fbc27 100644 --- a/templates/flake-parts/.envrc +++ b/templates/flake-parts/.envrc @@ -1,9 +1,9 @@ -if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then - source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" +if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then + source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM=" fi -nix_direnv_watch_file flake.nix -nix_direnv_watch_file flake.lock +watch_file flake.nix +watch_file flake.lock DEVENV_ROOT_FILE="$(mktemp)" printf %s "$PWD" > "$DEVENV_ROOT_FILE"