From d3fcdee236c02239de4117f731651c3c546f02e3 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Thu, 2 May 2024 23:05:10 -0700 Subject: Add script to generate remote hardware-configuration.nix --- scripts/remote-hardware-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/remote-hardware-config (limited to 'scripts') 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 + <&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 -- cgit v1.2.3