envrc: use flake
if available
This commit is contained in:
parent
aa85a2eda5
commit
dde189fb98
1 changed files with 1 additions and 6 deletions
7
.envrc
7
.envrc
|
@ -1,6 +1 @@
|
||||||
mkdir -p $(direnv_layout_dir)
|
use flake || use nix
|
||||||
# reload when these files change
|
|
||||||
watch_file flake.nix
|
|
||||||
watch_file flake.lock
|
|
||||||
# load the flake devShell
|
|
||||||
eval "$(nix print-dev-env --profile $(direnv_layout_dir)/flake-profile)"
|
|
||||||
|
|
Loading…
Reference in a new issue