nixpkgs-suyu/lib/tests/modules/declare-submoduleWith-special.nix
2020-01-02 09:59:35 +01:00

17 lines
331 B
Nix

{ lib, ... }: {
options.submodule = lib.mkOption {
type = lib.types.submoduleWith {
modules = [
({ lib, ... }: {
options.foo = lib.mkOption {
default = lib.foo;
};
})
];
specialArgs.lib = lib // {
foo = "foo";
};
};
default = {};
};
}