darwin01: switch to new hardware

This commit is contained in:
zowoq 2024-05-15 20:47:42 +10:00
parent a50a726407
commit 4b682d296c
6 changed files with 19 additions and 13 deletions

View file

@ -111,7 +111,13 @@ def get_hosts(hosts: str) -> List[DeployHost]:
systems = data["nixosConfigurations"]
return [DeployHost(f"{n}.nix-community.org") for n in systems]
if "darwin" in hosts:
if "darwin01" in hosts:
return [
DeployHost(f"{h}.nix-community.org", user="customer")
for h in hosts.split(",")
]
if "darwin02" or "darwin03" in hosts:
return [
DeployHost(f"{h}.nix-community.org", user="hetzner")
for h in hosts.split(",")