chore: fix direnv auto reload

This commit is contained in:
teutat3s 2022-04-03 18:36:20 +02:00
parent 03911fda34
commit 3e94c0d9f4
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

12
.envrc
View file

@ -1,2 +1,10 @@
watch_file shell/* flake.nix # reload when these files change
use flake || use nix watch_file flake.nix
watch_file shell.nix
{
# shell gc root dir
mkdir -p "$(direnv_layout_dir)"
eval "$(nix print-dev-env --profile $(direnv_layout_dir)/flake-profile)"
} || use nix