We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3c793c commit 891724aCopy full SHA for 891724a
nix/net.nix
@@ -147,6 +147,13 @@ in
147
warnings = [ "Please use nodes.${name} option instead of assigning machines to the config's top level" ];
148
})
149
nodes);
150
+
151
+ # Provides compatibility for old style node definitions outside in the root,
152
+ # outside the `nodes` option.
153
+ # TODO: interpreting arbitrary _mistaken_ configs as machines leads to
154
+ # obscure errors, so we should consider removing this backcompat
155
+ # solution, or perhaps eagerly throw an appropriate error as soon as
156
+ # we encounter an unknown key. The warning may not be encountered.
157
_module.freeformType = types.attrsOf deferredModule;
158
};
159
}
0 commit comments