>_ linuxcommand.dev
Startseite nixos-anywhere
Deployment

nixos-anywhere

Install NixOS remotely on target machines.

Last updated: Report error
Syntax
$nixos-anywhere [OPTIONS] --flake FLAKE HOST
Examples
Examples
$nixos-anywhere --flake .#server root@192.168.1.10
Examples
$nixos-anywhere --generate-hardware-config nixos-generate-config ./hw.nix root@host
Typical use cases
Remote install
nixos-anywhere --flake .#server root@host
Generate hardware config
nixos-anywhere --generate-hardware-config ...
Note Automates bare-metal/VM installation over SSH using flakes.
Export