watch_file $(find . -name "*.nix") if [ -L ./result ]; then echo "Found existing build; using flake_env" source ./result/share/flake_env/direnvrc use flake_env . else echo "No existing build found; using direnv built-in flake support" use flake . fi