Allow to add meta options like maintainers (#836)

This commit is contained in:
traxys 2023-12-22 15:59:41 +01:00 committed by GitHub
parent 189ae51b02
commit 2871dc94b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 0 deletions

View file

@ -39,6 +39,7 @@
};
}
(pkgs.path + "/nixos/modules/misc/meta.nix")
# ./plugins/default.nix
];

View file

@ -1,5 +1,6 @@
{lib, ...}:
with lib; rec {
maintainers = import ./maintainers.nix;
keymaps = import ./keymap-helpers.nix {inherit lib;};
autocmd = import ./autocmd-helpers.nix {inherit lib;};

8
lib/maintainers.nix Normal file
View file

@ -0,0 +1,8 @@
# Nixvim maintainers
#
# This attribute set contains Nixvim maintainers that do not
# have an entry in the Nixpkgs maintainer list. Entries are
# expected to follow the same format as that list.
#
# Nixpkgs maintainers: https://github.com/NixOS/nixpkgs/blob/0212bde005b3335b2665c1476c36b3936e113b15/maintainers/maintainer-list.nix
{}

View file

@ -6,6 +6,8 @@
...
}:
with lib; {
meta.maintainers = [maintainers.traxys];
options.plugins.gitmessenger = {
enable = mkEnableOption "gitmessenger";