nix: teach direnv about flake.nix imports

direnv now watches flake.nix dependencies in `nix/`, reloading
the environment on any changes.
This commit is contained in:
Denys Pavlov
2023-12-16 12:58:17 -05:00
parent e36c5203fa
commit 33ebda5633

1
.envrc
View File

@@ -1,5 +1,6 @@
# If we are a computer with nix-shell available, then use that to setup
# the build environment with exactly what we need.
if has nix; then
watch_file nix/{devShell,package,wraptest}.nix
use flake
fi