nix.buildMachines: Don't require sshUser
commitfb203a34c01d1df38bae24804f879b7ac013e88e
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateFri 26 Jun 2015, 18:12 (11 years ago)
parent946a682
nixos/modules/services/misc/nix-daemon.nix+1−1
@@ -296,7 +296,7 @@ in
296296 { enable = cfg.buildMachines != [];
297297 text =
298298 concatMapStrings (machine:
299− "${machine.sshUser}@${machine.hostName} "
299+ "${if machine ? sshUser then "${machine.sshUser}@" else ""}${machine.hostName} "
300300 + (if machine ? system then machine.system else concatStringsSep "," machine.systems)
301301 + " ${machine.sshKey} ${toString machine.maxJobs} "
302302 + (if machine ? speedFactor then toString machine.speedFactor else "1" )