#!/bin/sh

# TODO flesh out

# Confirm that you have mounted all nessesary sys partitions relative to /mnt
ssh $host << EOL
nixos-generate-config --root /mnt
nix-env -i git
git clone git@192.168.1.30:nixos.git
# Copy hardware config to host root
# Copy over ssh / age key
cd nixos
nixos-install --flake ./#$HOST

EOL