1{ lib, ... }:
2let
3 inherit (lib) types;
4in
5{
6
7 options = {
8 int = lib.mkOption {
9 type = types.lazyAttrsOf types.int;
10 };
11 list = lib.mkOption {
12 type = types.lazyAttrsOf (types.listOf types.int);
13 };
14 nonEmptyList = lib.mkOption {
15 type = types.lazyAttrsOf (types.nonEmptyListOf types.int);
16 };
17 attrs = lib.mkOption {
18 type = types.lazyAttrsOf (types.attrsOf types.int);
19 };
20 null = lib.mkOption {
21 type = types.lazyAttrsOf (types.nullOr types.int);
22 };
23 submodule = lib.mkOption {
24 type = types.lazyAttrsOf (types.submodule { });
25 };
26 };
27
28 config = {
29 int.a = lib.mkIf false null;
30 list.a = lib.mkIf false null;
31 nonEmptyList.a = lib.mkIf false null;
32 attrs.a = lib.mkIf false null;
33 null.a = lib.mkIf false null;
34 submodule.a = lib.mkIf false null;
35 };
36
37}