Neovim
Configure Neovim as the default Editor
Add this to your configuration.nix
environment.variables.EDITOR = "nvim";
Set Neovim as vi
and vim
Add this to your configuration.nix
nixpkgs.overlays = [ (self: super: { neovim = super.neovim.override { viAlias = true; vimAlias = true; }; }) ];