aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remote-hardware-config
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/remote-hardware-config14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/remote-hardware-config b/scripts/remote-hardware-config
new file mode 100755
index 0000000..0f71ad8
--- /dev/null
+++ b/scripts/remote-hardware-config
@@ -0,0 +1,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