Using my own Minimal NeoVim Wrapper
nix run github:Gerg-L/nvim-flakeI'd recommend forking and modifiying to your use-case rather than using this as-is in your own config...
But if you want do use it anyways or install your fork here's how
Add this flake as an input
#flake.nix
{
inputs = {
nvim-flake = {
url = "github:Gerg-L/nvim-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
...(Make sure you're passing inputs to your modules)
#anyModule.nix
# add system wide
environment.systemPackages = [
inputs.nvim-flake.packages.${pkgs.stdenv.system}.neovim
];
# add per-user
users.users."<name>".packages = [
inputs.nvim-flake.packages.${pkgs.stdenv.system}.neovim
];Update the flake like any other nix flake update
Add/remove/update plugins via npins ( aliased to start and opt if you're in the devShell)
Example of adding a plugin: start add github nvim-treesitter nvim-treesitter-context --branch main
Example of updated all plugins: start update --full && opt update --full
All lua configuration is done in the /gerg directory and added to plugins
My lua config is not very good so I recommend writing your own