If you have nix-direnv installed
It should work automatically after giving permissions to the direnv:
direnv allow
If you have nix installed
It should work automatically after entering a nix development shell:
nix-shell
Please follow this installation manual.