Deployment
nixos-anywhere
Install NixOS remotely on target machines.
NixOS
Verified: 2026-05-11
Syntax
$nixos-anywhere [OPTIONS] --flake FLAKE HOST
Examples
$nixos-anywhere --flake .#server root@192.168.1.10
$nixos-anywhere --generate-hardware-config nixos-generate-config ./hw.nix root@host
Typical use cases
?
Standard usage
nixos-anywhere --help
Note
Automates bare-metal/VM installation over SSH using flakes.
Export