tasks.py: install: add build-on-remote, drop no-reboot

This commit is contained in:
zowoq 2024-05-05 10:06:09 +10:00
parent 4fe3aaf1a4
commit 11ba9e0a46

View file

@ -181,7 +181,7 @@ def install(c: Any, flake_attr: str, hostname: str) -> None:
return return
with TemporaryDirectory() as tmpdir: with TemporaryDirectory() as tmpdir:
decrypt_host_key(flake_attr, tmpdir) decrypt_host_key(flake_attr, tmpdir)
flags = "--debug --no-reboot --option accept-flake-config true" flags = "--build-on-remote --debug --option accept-flake-config true"
c.run( c.run(
f"nix run --inputs-from . nixpkgs#nixos-anywhere -- {hostname} --extra-files {tmpdir} --flake .#{flake_attr} {flags}", f"nix run --inputs-from . nixpkgs#nixos-anywhere -- {hostname} --extra-files {tmpdir} --flake .#{flake_attr} {flags}",
echo=True, echo=True,