tasks: reformat
This commit is contained in:
parent
7b22db7d43
commit
3025174536
1 changed files with 5 additions and 4 deletions
9
tasks.py
9
tasks.py
|
@ -24,9 +24,7 @@ def deploy_nixos(hosts: List[DeployHost]) -> None:
|
|||
)
|
||||
|
||||
# FIXME: build03 has itself as a builder and deadlocks building packages.
|
||||
h.run(
|
||||
f"nixos-rebuild switch --builders '' --option accept-flake-config true"
|
||||
)
|
||||
h.run(f"nixos-rebuild switch --builders '' --option accept-flake-config true")
|
||||
|
||||
g.run_function(deploy)
|
||||
|
||||
|
@ -135,7 +133,10 @@ def nixos_install(c, hosts=""):
|
|||
|
||||
def get_hosts(hosts: str) -> List[DeployHost]:
|
||||
if hosts == "":
|
||||
return [DeployHost(f"build{n + 1:02d}.nix-community.org", user="root") for n in range(4)]
|
||||
return [
|
||||
DeployHost(f"build{n + 1:02d}.nix-community.org", user="root")
|
||||
for n in range(4)
|
||||
]
|
||||
|
||||
return [DeployHost(f"{h}.nix-community.org", user="root") for h in hosts.split(",")]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue