forked from pub-solar/os
chore: fix direnv auto reload
This commit is contained in:
parent
03911fda34
commit
3e94c0d9f4
12
.envrc
12
.envrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue