1{ lib, ... }:
2let
3 inherit (lib) types mkOption;
4in
5{
6 imports = [
7 # Module A
8 (
9 { ... }:
10 {
11 options.mergedName = mkOption {
12 default = { };
13 type = types.attrsWith {
14 placeholder = "id"; # <- this is beeing tested
15 elemType = types.submodule {
16 options.nested = mkOption {
17 type = types.int;
18 default = 1;
19 };
20 };
21 };
22 };
23 }
24 )
25 # Module B
26 (
27 { ... }:
28 {
29 options.mergedName = mkOption {
30 type = types.attrsWith {
31 placeholder = "other"; # <- define placeholder = "other" (conflict)
32 elemType = types.submodule { };
33 };
34 };
35 }
36 )
37 ];
38}