mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-20 01:56:47 +02:00
29 lines
510 B
Nix
29 lines
510 B
Nix
|
{ config, lib, ... }: {
|
||
|
|
||
|
_file = "optionTypeFile.nix";
|
||
|
|
||
|
options.theType = lib.mkOption {
|
||
|
type = lib.types.optionType;
|
||
|
};
|
||
|
|
||
|
options.theOption = lib.mkOption {
|
||
|
type = config.theType;
|
||
|
default = {};
|
||
|
};
|
||
|
|
||
|
config.theType = lib.mkMerge [
|
||
|
(lib.types.submodule {
|
||
|
options.nested = lib.mkOption {
|
||
|
type = lib.types.int;
|
||
|
};
|
||
|
})
|
||
|
(lib.types.submodule {
|
||
|
_file = "other.nix";
|
||
|
options.nested = lib.mkOption {
|
||
|
type = lib.types.str;
|
||
|
};
|
||
|
})
|
||
|
];
|
||
|
|
||
|
}
|