A Nix Flake for working with lazy.nvim Neovim plugins and the LazyVim distribution.
Add as an input to your flake:
{
inputs.lazy-nvim-nix.url = "github:josh/lazy-nvim-nix";
outputs = { self, lazy-nvim-nix }: {
homeModules.default = {
programs.neovim.finalPackage = lazy-nvim-nix.packages.x86_64-linux.LazyVim;
};
nixosModules.default = {
programs.neovim.finalPackage = lazy-nvim-nix.packages.x86_64-linux.default;
};
};
}
{
environment.systemPackages = [
pkgs.lazy-nvim.override {
spec = [ "lualine.nvim" ];
};
];
}
{
home.packages = [
pkgs.LazyVim.override {
lazyVimExtras = [ "lazyvim.plugins.extras.coding.copilot" ];
};
];
}
Alias for packages.${system}.lazy-nvim
.
{
nixpkgs.overlays = [ lazy-nvim-nix.overlays.default ];
programs.neovim.finalPackage = pkgs.lazynvimPlugins.LazyVim.override {
lazyVimExtras = [ "lazyvim.plugins.extras.coding.copilot" ];
};
}