flake_env/.envrc
2024-08-16 07:36:38 -04:00

10 lines
261 B
Bash

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