mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
39 lines
776 B
Nix
39 lines
776 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) types mkOption;
|
|
in
|
|
{
|
|
imports = [
|
|
# Module A
|
|
(
|
|
{ ... }:
|
|
{
|
|
options.mergedName = mkOption {
|
|
default = { };
|
|
type = types.attrsWith {
|
|
placeholder = "id"; # <- this is beeing tested
|
|
elemType = types.submodule {
|
|
options.nested = mkOption {
|
|
type = types.int;
|
|
default = 1;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
)
|
|
# Module B
|
|
(
|
|
{ ... }:
|
|
{
|
|
options.mergedName = mkOption {
|
|
type = types.attrsWith {
|
|
placeholder = "other"; # <- define placeholder = "other" (conflict)
|
|
elemType = types.submodule { };
|
|
};
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|