Use nix-direnv (#356)

This commit is contained in:
Alexander Nortung 2023-05-14 10:50:08 +02:00 committed by GitHub
parent b77e3e9ccb
commit 8a8efebda2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
.envrc
View file

@ -1,7 +1,5 @@
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
}
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
use flake