envrc: `use flake` if available

This commit is contained in:
Timothy DeHerrera 2020-08-02 13:30:50 -06:00
parent aa85a2eda5
commit dde189fb98
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
1 changed files with 1 additions and 6 deletions

7
.envrc
View File

@ -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)"