neovim-flake/flake/overlays.nix

20 lines
541 B
Nix
Raw Normal View History

2023-04-18 00:05:18 +02:00
{
pkgs,
lib,
2023-04-18 00:05:18 +02:00
...
}: let
inherit (lib.nvim) neovimConfiguration;
2023-02-10 18:45:23 +01:00
2023-10-03 21:08:02 +02:00
buildPkg = pkgs: modules: (neovimConfiguration {inherit pkgs modules;}).neovim;
2023-02-10 18:45:23 +01:00
nixConfig = import ../configuration.nix false;
maximalConfig = import ../configuration.nix 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];
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
};
}