tasks.py: use nixos-anywhere from nixpkgs

This commit is contained in:
zowoq 2023-09-24 10:00:51 +10:00
parent 17051442e5
commit 2eca43d7cd
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@
}
## `opc` is the username from the oracle image. Replace with root if we are booted into nixos.
# nix run github:numtide/nixos-anywhere#nixos-anywhere -- \
# nix run --inputs-from . nixpkgs#nixos-anywhere -- \
# --debug \
# --flake '.#build04' \
# opc@141.148.235.248

View file

@ -174,7 +174,7 @@ def install(c: Any, flake_attr: str, hostname: str) -> None:
decrypt_host_key(flake_attr, tmpdir)
flags = "--debug --no-reboot --option accept-flake-config true"
c.run(
f"nix run github:numtide/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,
)