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)
|
||||
# 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)"
|
||||
use flake || use nix
|
||||
|
|
Loading…
Reference in a new issue