Installing a neovim IDE layer the Nix-way

Hey @4761 :wave:, I do not know about LunarVim or NvChad specifically, but I use AstroNvim which I setup with home-manager:

And AstroNvim supports loading its config from a location other than ~/.config/nvim, ~/.config/astronvim works out-of-the-box:

The onChanges work around an issue with the impatient.nvim: Using `mtime.secs` for hash is incompatible with Nix managed configurations 路 Issue #42 路 lewis6991/impatient.nvim 路 GitHub. You can ignore if your config does not use it (AstroNvim does).

I manage updates with niv, but nix flake could do too:

niv add AstroNvim/AstroNvim --name astronvim --branch v2.11.8
niv update astronvim --branch <tag>

I do not use any fancy feature from home-manager at the moment (e.g. its neovim modules which would be incompatible beyond installing the package), I only use it to link my dotfiles.

Hope that helps :slight_smile:

2 Likes