Is it possible to iterate/feed a list or attribute set of lists to a nixos configuration file.
Something like this:
[
{ "name" = "foo"; "id" = "1" }
{ "name" = "moo"; "id" = "2" }
];
to
"${name}" = {
"attrib" = {
"name" ="${name}";
"uid" = "${id}";
};
};
like in a for loop, in any other language.