Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let
sub = { config, lib, parentConfig, ...}: {
options.foo = lib.mkOption {
type = lib.types.bool;
default = parentConfig.bar;
};
};
in { config, lib, ...}: {
options.bar = lib.mkOption { type = lib.types.bool; default = true; };
options.bla = lib.mkOption {
type = with lib.types; attrsOf (submodule { imports = [sub]; _module.args.parentConfig = config; });
};
config.bla.test = {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.