The following is a setup to use devenv that requires just nix to be installed.
The shell.nix is pinned to a stable release eg: 25.11 to install devenv, and then devenv is pinned to the same table release.
After running devenv init be sure that devenv.yaml is pinned to the same nixpkgs of shell.nix to reuse the same stable artifacts.
The .envrc enable the usage of direnv which is handle for the terminal and can also be used by VSCode via https://marketplace.visualstudio.com/items?itemName=mkhl.direnv