mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-16 06:31:24 +01:00
10 lines
261 B
Bash
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
|