This package provides 'nix-buffer', to modify your buffer according to a directory-local nix expression. Think of it as nix-shell for Emacs. See the documentation for 'nix-buffer' for more details. It may be desirable to run 'nix-buffer' before 'normal-mode' is called so it affects all modes.