Skip to content

Enable nix-direnv

A recommended way to integrate Nix into your environment is via nix-direnv. Both NixOS and home-manager provide options for running nix-direnv.

NixOS:

{
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
}

or home-manager:

{
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
}

Further reading