direnv: fix 'watch_file' directives

I should use `nix_direnv_watch_file` and call it _before_ `use_flake`.
This commit is contained in:
Bruno BELANYI 2023-10-12 13:41:36 +00:00
parent fd09346526
commit e09899d59c
1 changed files with 3 additions and 3 deletions

6
.envrc
View File

@ -2,7 +2,7 @@ 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
nix_direnv_watch_file ./flake/checks.nix
nix_direnv_watch_file ./flake/dev-shells.nix
watch_file ./flake/checks.nix
watch_file ./flake/dev-shells.nix
use flake