flake-parts/nixvim-modules: init

This commit is contained in:
Gabriel Arazas 2024-01-25 19:12:58 +08:00
parent 2a8b8d9b08
commit b7d75f4c9d
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 23 additions and 0 deletions

View File

@ -10,6 +10,7 @@
./deploy-rs-nodes.nix ./deploy-rs-nodes.nix
./home-configurations.nix ./home-configurations.nix
./home-modules.nix ./home-modules.nix
./nixvim-modules.nix
./nixvim-configurations.nix ./nixvim-configurations.nix
./setups ./setups
]; ];

View File

@ -0,0 +1,22 @@
{ 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.
'';
};
};
};
}