lib/overlay: init

The overlay allows extending any instance of nixpkgs-lib into a
nixvim-compatible "extended" instance.
This commit is contained in:
Matt Sturgeon 2024-12-21 12:58:33 +00:00
parent 450cccf472
commit aefab28b3b
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
6 changed files with 27 additions and 25 deletions

14
lib/overlay.nix Normal file
View file

@ -0,0 +1,14 @@
{ flake }:
final: prev: {
# Include our custom lib
nixvim = flake.lib.nixvim.override {
lib = final;
_isExtended = true;
};
# Merge in our maintainers
maintainers = prev.maintainers // import ./maintainers.nix;
# Merge in our custom types
types = prev.types // import ./types.nix { lib = final; };
}