tasks.py: use upstream nixos-anywhere

This commit is contained in:
zowoq 2023-12-02 06:48:28 +10:00
parent a3b12e014a
commit ce35954cc1

View file

@ -181,8 +181,9 @@ def install(c: Any, flake_attr: str, hostname: str) -> None:
with TemporaryDirectory() as tmpdir:
decrypt_host_key(flake_attr, tmpdir)
flags = "--debug --no-reboot --option accept-flake-config true"
# we want 1.1.0 here: https://github.com/NixOS/nixpkgs/pull/271446
c.run(
f"nix run --inputs-from . nixpkgs#nixos-anywhere -- {hostname} --extra-files {tmpdir} --flake .#{flake_attr} {flags}",
f"nix run --inputs-from . github:nix-community/nixos-anywhere -- {hostname} --extra-files {tmpdir} --flake .#{flake_attr} {flags}",
echo=True,
)