{
lib,
extendModules,
...
}:
let
inherit (lib)
mkOption
mkOverride
types
;
in
imports = [
options.sub = mkOption {
default = { };
type = types.submodule (
config,
options.value = mkOption {
type = types.int;
};
options.specialisation = mkOption {
inherit
(extendModules {
modules = [
specialisation = mkOverride 0 { };
}
];
})
type
);
{ config.sub.value = 1; }