13 lines
264 B
Nix
13 lines
264 B
Nix
|
let
|
||
|
nodes = (import ../nodes.nix);
|
||
|
|
||
|
nameValuePair = name: value: { inherit name value; };
|
||
|
|
||
|
hosts = map (x: [
|
||
|
{ name = x.name; value = [ { name = "deployment.targetHost"; value = x.ip; } ]; }
|
||
|
]) nodes;
|
||
|
|
||
|
test = builtins.listToAttrs hosts;
|
||
|
in
|
||
|
test
|