mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
flake.nix: split overlays
This commit is contained in:
parent
2f84ce13c4
commit
a946045a7c
2 changed files with 26 additions and 24 deletions
23
flake/overlays.nix
Normal file
23
flake/overlays.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{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];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue