#!/usr/bin/env zsh

remote="${1}"

if [[ -z "${remote}" ]]; then
	<<EOF >&2
usage: ${0:t} user@host

where user@host is the usual SSH syntax to generate a NixOS hardware-configuration.nix
EOF
	exit 1
fi

ssh ${remote} nixos-generate-config --show-hardware-config
