mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
nix.buildMachines: Don't require sshUser
This commit is contained in:
parent
946a6823b2
commit
fb203a34c0
@ -296,7 +296,7 @@ in
|
|||||||
{ enable = cfg.buildMachines != [];
|
{ enable = cfg.buildMachines != [];
|
||||||
text =
|
text =
|
||||||
concatMapStrings (machine:
|
concatMapStrings (machine:
|
||||||
"${machine.sshUser}@${machine.hostName} "
|
"${if machine ? sshUser then "${machine.sshUser}@" else ""}${machine.hostName} "
|
||||||
+ (if machine ? system then machine.system else concatStringsSep "," machine.systems)
|
+ (if machine ? system then machine.system else concatStringsSep "," machine.systems)
|
||||||
+ " ${machine.sshKey} ${toString machine.maxJobs} "
|
+ " ${machine.sshKey} ${toString machine.maxJobs} "
|
||||||
+ (if machine ? speedFactor then toString machine.speedFactor else "1" )
|
+ (if machine ? speedFactor then toString machine.speedFactor else "1" )
|
||||||
|
Loading…
Reference in New Issue
Block a user