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

7
.envrc
View file

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