From 8b7198d7e70c204e88208af381f991c98b5abc76 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 7 Mar 2023 11:47:26 +0000 Subject: [PATCH] direnv: always use 'nix-direnv' --- .envrc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.envrc b/.envrc index 116d0c6..c912bf2 100644 --- a/.envrc +++ b/.envrc @@ -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"