nixos-config/modules/flake-parts/nixvim-modules.nix

23 lines
570 B
Nix
Raw Normal View History

2024-01-25 11:12:58 +00:00
{ lib, flake-parts-lib, moduleLocation, ... }:
{
options = {
flake = flake-parts-lib.mkSubmoduleOptions {
nixvimModules = lib.mkOption {
type = with lib.types; lazyAttrsOf unspecified;
default = { };
apply = lib.mapAttrs (k: v: {
_file = "${toString moduleLocation}#nixvimModules.${k}";
imports = [ v ];
});
description = ''
NixVim modules.
You may use this to export reusable pieces of plugin configurations,
plugin modules, etc.
'';
};
};
};
}