blob: 9d27e5a4e6be50b7b9f6ce55c7b9d7f8158d835f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env sh
[ "$#" -ne 2 ] && {
echo "Usage: $1 <ssh url> <host_name>"
exit 2
}
ssh_url="$1"
host_name="$2"
root="$(git rev-parse --show-toplevel)"
nix run github:numtide/nixos-anywhere -- \
--flake ".#$host_name" \
--target-host "$ssh_url" \
--generate-hardware-config nixos-facter "$root/hardware_config_$host_name.nix"
# vim: ft=sh
|