Skip to content

Commit

Permalink
Use nix-direnv (nix-community#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexnortung authored May 14, 2023
1 parent b77e3e9 commit 8a8efeb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .envrc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8a8efeb

Please sign in to comment.