fix: allow specialArgs and nodeSpecialArgs to override name and nodes

Co-authored-by: Zhaofeng Li <hello@zhaofeng.li>
This commit is contained in:
oddlama 2023-05-18 18:03:10 +02:00 committed by Zhaofeng Li
parent caf33af7d8
commit c6f42e447d

View file

@ -151,10 +151,10 @@ let
colmenaOptions.deploymentOptions
hive.defaults
] ++ configs;
specialArgs = hive.meta.specialArgs // (hive.meta.nodeSpecialArgs.${name} or {}) // {
specialArgs = {
inherit name;
nodes = uncheckedNodes;
};
} // hive.meta.specialArgs // (hive.meta.nodeSpecialArgs.${name} or {});
};
nodeNames = filter (name: ! elem name reservedNames) (attrNames hive);