.envrc: Use nix-direnv with use flake

This commit is contained in:
Zhaofeng Li 2021-08-26 13:15:04 -07:00
parent 7b69946d98
commit db563caad9
2 changed files with 6 additions and 1 deletions

6
.envrc
View file

@ -1 +1,5 @@
use nix
if ! has nix_direnv_version || ! nix_direnv_version 1.4.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.4.0/direnvrc" "sha256-4XfVDjv75eHMWN4G725VW7BoOV4Vl3vAabK4YXIfPyE="
fi
use flake

1
.gitignore vendored
View file

@ -1 +1,2 @@
/target
/.direnv