nixpkgs/lib/tests/maintainer-module.nix
Wolfgang Walther 568b19f656
maintainers: require GitHub handle
At the scale of Nixpkgs, actively maintaining a package is only possible
with integration into CI. To be able to be pinged for review requests,
the maintainer must have a GitHub handle, which:
- Leads to an invitation to the NixOS org, which comes with additional
privileges.
- Allows to request the maintainer for review as a member of this org.
- Automatically requests the maintainer for review in CI.

Currently, the GitHub handle is not strictly enforced. This leads to
some new maintainers accidentally forgetting to set these. We can avoid
these mistakes and enforce them via CI.
2025-09-02 09:57:25 +02:00

34 lines
636 B
Nix

{ lib, ... }:
let
inherit (lib) types;
in
{
options = {
name = lib.mkOption {
type = types.str;
};
github = lib.mkOption {
type = types.str;
};
githubId = lib.mkOption {
type = types.ints.unsigned;
};
email = lib.mkOption {
type = types.nullOr types.str;
default = null;
};
matrix = lib.mkOption {
type = types.nullOr types.str;
default = null;
};
keys = lib.mkOption {
type = types.listOf (
types.submodule {
options.fingerprint = lib.mkOption { type = types.str; };
}
);
default = [ ];
};
};
}