nix: teach direnv about flake.nix imports

direnv now watches flake.nix dependencies in `nix/`, reloading
the environment on any changes.
pull/1104/head
Denys Pavlov 2023-12-16 12:58:17 -05:00
parent e36c5203fa
commit 33ebda5633
1 changed files with 1 additions and 0 deletions

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