summaryrefslogtreecommitdiff
path: root/remote-install.sh
blob: 94ced0e89da855b07240466335d18793341b2cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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