NixOS can be installed remotely on an existing system via SSH using nixos-anywhere. References How I like to install NixOS (declaratively)