{"doc_urls":["requirements.html#system-requirements-nixos-anywhere","requirements.html#requirements","requirements.html#source-machine","requirements.html#destination-machine","quickstart.html#quickstart-guide-nixos-anywhere","quickstart.html#introduction","quickstart.html#steps-required-to-run-nixos-anywhere","howtos/INDEX.html#how-to-guide-nixos-anywhere","howtos/INDEX.html#contents","howtos/no-os.html#installing-on-a-machine-with-no-operating-system","howtos/custom-kexec.html#using-your-own-kexec-image","howtos/secrets.html#secrets-and-full-disk-encryption","howtos/secrets.html#example-decrypting-an-openssh-host-key-with-pass","howtos/secrets.html#example-uploading-disk-encryption-secrets","howtos/secrets.html#example-using-existing-ssh-host-keys","howtos/use-without-flakes.html#use-without-flakes","howtos/use-without-flakes.html#1-download-your-favourite-disk-layout","howtos/use-without-flakes.html#2-get-a-hardware-configurationnix-from-on-the-target-machine","howtos/use-without-flakes.html#3-set-nixos-version-to-use","howtos/use-without-flakes.html#4-write-a-nixos-configuration","howtos/use-without-flakes.html#5-build-and-deploy-with-nixos-anywhere","howtos/terraform.html#terraform","howtos/nix-path.html#nix-channels--nix_path","howtos/nix-path.html#solution-1-set-the-nix_path-via-nixos-configuration-recommended","howtos/nix-path.html#solution-2-manually-add-the-channel","howtos/ipv6.html#nixos-anywhere-on-ipv6-only-targets","reference.html#reference-manual-nixos-anywhere","reference.html#contents","reference.html#command-line-usage","reference.html#explanation-of-known-error-messages"],"index":{"documentStore":{"docInfo":{"0":{"body":7,"breadcrumbs":6,"title":4},"1":{"body":0,"breadcrumbs":3,"title":1},"10":{"body":116,"breadcrumbs":6,"title":3},"11":{"body":29,"breadcrumbs":8,"title":4},"12":{"body":81,"breadcrumbs":10,"title":6},"13":{"body":89,"breadcrumbs":9,"title":5},"14":{"body":37,"breadcrumbs":10,"title":6},"15":{"body":22,"breadcrumbs":6,"title":3},"16":{"body":23,"breadcrumbs":8,"title":5},"17":{"body":46,"breadcrumbs":8,"title":5},"18":{"body":20,"breadcrumbs":8,"title":5},"19":{"body":32,"breadcrumbs":7,"title":4},"2":{"body":31,"breadcrumbs":4,"title":2},"20":{"body":29,"breadcrumbs":8,"title":5},"21":{"body":47,"breadcrumbs":2,"title":1},"22":{"body":46,"breadcrumbs":6,"title":3},"23":{"body":50,"breadcrumbs":11,"title":8},"24":{"body":12,"breadcrumbs":8,"title":5},"25":{"body":58,"breadcrumbs":6,"title":4},"26":{"body":11,"breadcrumbs":5,"title":4},"27":{"body":7,"breadcrumbs":2,"title":1},"28":{"body":188,"breadcrumbs":4,"title":3},"29":{"body":297,"breadcrumbs":5,"title":4},"3":{"body":73,"breadcrumbs":4,"title":2},"4":{"body":7,"breadcrumbs":5,"title":4},"5":{"body":79,"breadcrumbs":2,"title":1},"6":{"body":640,"breadcrumbs":6,"title":5},"7":{"body":7,"breadcrumbs":4,"title":3},"8":{"body":20,"breadcrumbs":2,"title":1},"9":{"body":248,"breadcrumbs":8,"title":4}},"docs":{"0":{"body":"Install NixOS everywhere via ssh Documentation Index","breadcrumbs":"System Requirements » System Requirements: nixos-anywhere","id":"0","title":"System Requirements: nixos-anywhere"},"1":{"body":"","breadcrumbs":"System Requirements » Requirements","id":"1","title":"Requirements"},"10":{"body":"By default, nixos-anywhere downloads the kexec image from the NixOS images repository . However, you can provide your own kexec image file if you need to use a different one. This is particularly useful for architectures other than x86_64 and aarch64, since they don't have a pre-build image. To do this, use the --kexec command line switch followed by the path to your image file. The image will be uploaded prior to execution. Here's an example command that demonstrates how to use a custom kexec image with nixos-anywhere: nix run github:nix-community/nixos-anywhere -- \\ --kexec \"$(nix build --print-out-paths github:nix-community/nixos-images#packages.aarch64-linux.kexec-installer-nixos-unstable-noninteractive)/nixos-kexec-installer-noninteractive-aarch64-linux.tar.gz\"\\--flake'github:your-user/your-repo#your-system'\\