direnv: fix 'watch_file' directives
I should use `nix_direnv_watch_file` and call it _before_ `use_flake`.
This commit is contained in:
parent
fd09346526
commit
e09899d59c
1 changed files with 3 additions and 3 deletions
6
.envrc
6
.envrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue