fixup! randomly pick a builder and pass it as --store
This commit is contained in:
parent
4a7a9f837a
commit
4a162a8aa5
|
@ -66,10 +66,10 @@ class NixBuilder:
|
|||
fullConnection = f"{self.protocol}://{fullConnection}"
|
||||
params = []
|
||||
if self.sshKey is not None:
|
||||
params += f"ssh-key={self.sshKey}"
|
||||
params.append(f"ssh-key={self.sshKey}")
|
||||
if self.publicHostKey is not None:
|
||||
encoded_public_key = base64.b64encode(self.publicHostKey.encode('ascii')).decode('ascii')
|
||||
params += f"base64-ssh-public-host-key={encoded_public_key}"
|
||||
params.append(f"base64-ssh-public-host-key={encoded_public_key}")
|
||||
if params != []:
|
||||
fullConnection += "?"
|
||||
fullConnection += "&".join(params)
|
||||
|
|
|
@ -62,6 +62,7 @@ in
|
|||
pkgs.openssh
|
||||
pkgs.nix
|
||||
pkgs.nix-eval-jobs
|
||||
pkgs.bash
|
||||
];
|
||||
environment.PYTHONPATH = "${python.withPackages (_: [cfg.package])}/${python.sitePackages}";
|
||||
environment.MASTER_URL = cfg.coordinatorUrl;
|
||||
|
|
Loading…
Reference in a new issue