{ lib, config, ... }:
{
options = {
processedToplevel = lib.mkOption {
type = lib.types.raw;
};
unprocessedNesting = lib.mkOption {
multiple = lib.mkOption {
priorities = lib.mkOption {
unprocessedNestingEvaluates = lib.mkOption {
default = builtins.tryEval config.unprocessedNesting;
config = {
processedToplevel = lib.mkIf true 10;
unprocessedNesting.foo = throw "foo";
multiple = lib.mkMerge [
"foo"
];
priorities = lib.mkMerge [
(lib.mkForce "bar")
}