fixup! randomly pick a builder and pass it as --store

This commit is contained in:
Yureka 2024-08-06 11:45:42 +02:00
parent 4a7a9f837a
commit 4a162a8aa5
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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;