direnv: always use 'nix-direnv'

This commit is contained in:
Bruno BELANYI 2023-03-07 11:47:26 +00:00
parent 453e5a925a
commit 8b7198d7e7

8
.envrc
View file

@ -1,8 +1,6 @@
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env)"
}
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi
use flake
eval "$shellHooks"