aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remote-hardware-config
blob: 0f71ad8276dfd57b9920d6340e629c447b5350c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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