1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-26 13:19:49 +01:00
neovim-flake/flake/overlays.nix

24 lines
647 B
Nix
Raw Normal View History

2023-04-18 00:05:18 +02:00
{
inputs,
pkgs,
...
}: let
2023-02-10 18:45:23 +01:00
inherit (import ../extra.nix inputs) neovimConfiguration mainConfig;
buildPkg = pkgs: modules:
2023-03-31 04:20:35 +02:00
(neovimConfiguration {inherit pkgs modules;})
2023-02-10 18:45:23 +01:00
.neovim;
nixConfig = mainConfig false;
maximalConfig = mainConfig true;
2023-03-31 04:20:35 +02:00
tidalConfig = {config.vim.tidal.enable = true;};
2023-02-10 18:45:23 +01:00
in {
2023-03-31 04:20:35 +02:00
flake.overlays.default = _final: prev: {
2023-02-10 18:45:23 +01:00
inherit neovimConfiguration;
neovim-nix = buildPkg prev [nixConfig];
neovim-maximal = buildPkg prev [maximalConfig];
neovim-tidal = buildPkg prev [tidalConfig];
2023-04-18 00:05:18 +02:00
devPkg = buildPkg pkgs [nixConfig {config.vim.languages.html.enable = pkgs.lib.mkForce true;}];
2023-02-10 18:45:23 +01:00
};
}