git.iko.soy/typeable/nixpkgs
on master help sign in
nix.buildMachines: Don't require sshUser
fb203a3Eelco Dolstra
nixos/modules/services/misc/nix-daemon.nix+1−1
@@ -296,7 +296,7 @@ in
296 { enable = cfg.buildMachines != [];
296 { enable = cfg.buildMachines != [];
297 text =
297 text =
298 concatMapStrings (machine:
298 concatMapStrings (machine:
299− "${machine.sshUser}@${machine.hostName} "
299+ "${if machine ? sshUser then "${machine.sshUser}@" else ""}${machine.hostName} "
300 + (if machine ? system then machine.system else concatStringsSep "," machine.systems)
300 + (if machine ? system then machine.system else concatStringsSep "," machine.systems)
301 + " ${machine.sshKey} ${toString machine.maxJobs} "
301 + " ${machine.sshKey} ${toString machine.maxJobs} "
302 + (if machine ? speedFactor then toString machine.speedFactor else "1" )
302 + (if machine ? speedFactor then toString machine.speedFactor else "1" )