mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 14:45:58 +01:00
24 lines
553 B
Nix
24 lines
553 B
Nix
|
{inputs, ...}: let
|
||
|
inherit (import ../extra.nix inputs) neovimConfiguration mainConfig;
|
||
|
|
||
|
tidalConfig = {
|
||
|
config.vim.tidal.enable = true;
|
||
|
};
|
||
|
|
||
|
buildPkg = pkgs: modules:
|
||
|
(neovimConfiguration {
|
||
|
inherit pkgs modules;
|
||
|
})
|
||
|
.neovim;
|
||
|
|
||
|
nixConfig = mainConfig false;
|
||
|
maximalConfig = mainConfig true;
|
||
|
in {
|
||
|
flake.overlays.default = final: prev: {
|
||
|
inherit neovimConfiguration;
|
||
|
neovim-nix = buildPkg prev [nixConfig];
|
||
|
neovim-maximal = buildPkg prev [maximalConfig];
|
||
|
neovim-tidal = buildPkg prev [tidalConfig];
|
||
|
};
|
||
|
}
|