nix.buildMachines: Fewer required fields
This commit is contained in:
parent
03dbba9757
commit
a9b3d75e9e
@ -329,13 +329,13 @@ in
|
|||||||
text =
|
text =
|
||||||
concatMapStrings (machine:
|
concatMapStrings (machine:
|
||||||
"${if machine ? sshUser then "${machine.sshUser}@" else ""}${machine.hostName} "
|
"${if machine ? sshUser then "${machine.sshUser}@" else ""}${machine.hostName} "
|
||||||
+ (if machine ? system then machine.system else concatStringsSep "," machine.systems)
|
+ machine.system or (concatStringsSep "," machine.systems)
|
||||||
+ " ${machine.sshKey} ${toString machine.maxJobs} "
|
+ " ${machine.sshKey or "-"} ${toString machine.maxJobs or 1} "
|
||||||
+ (if machine ? speedFactor then toString machine.speedFactor else "1" )
|
+ toString (machine.speedFactor or 1)
|
||||||
+ " "
|
+ " "
|
||||||
+ (if machine ? supportedFeatures then concatStringsSep "," machine.supportedFeatures else "" )
|
+ concatStringsSep "," (machine.mandatoryFeatures or [] ++ machine.supportedFeatures or [])
|
||||||
+ " "
|
+ " "
|
||||||
+ (if machine ? mandatoryFeatures then concatStringsSep "," machine.mandatoryFeatures else "" )
|
+ concatStringsSep "," machine.mandatoryFeatures or []
|
||||||
+ "\n"
|
+ "\n"
|
||||||
) cfg.buildMachines;
|
) cfg.buildMachines;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user