about summary refs log tree commit diff
path: root/nixpkgs/lib/tests/maintainer-module.nix
blob: 8cf8411b476a4b909fed045b39592ac5c589ae49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, ... }:
let
  inherit (lib) types;
in {
  options = {
    name = lib.mkOption {
      type = types.str;
    };
    email = lib.mkOption {
      type = types.str;
    };
    matrix = lib.mkOption {
      type = types.nullOr types.str;
      default = null;
    };
    github = lib.mkOption {
      type = types.nullOr types.str;
      default = null;
    };
    githubId = lib.mkOption {
      type = types.nullOr types.ints.unsigned;
      default = null;
    };
    keys = lib.mkOption {
      type = types.listOf (types.submodule {
        options.fingerprint = lib.mkOption { type = types.str; };
      });
      default = [];
    };
  };
}