mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 07:05:57 +01:00
19 lines
547 B
Nix
19 lines
547 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (import ../configuration.nix inputs) neovimConfiguration mainConfig;
|
|
|
|
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];
|
|
devPkg = buildPkg pkgs [nixConfig {config.vim.languages.html.enable = pkgs.lib.mkForce true;}];
|
|
};
|
|
}
|