Finalize calypso install!
This commit is contained in:
parent
b67cf3fde7
commit
2357c5d3d6
5 changed files with 26 additions and 12 deletions
scripts
|
@ -49,6 +49,16 @@ if [ "$action" = "install" ]; then
|
|||
|
||||
echo "Installing nixos"
|
||||
nixos-install --flake ".#$host"
|
||||
|
||||
echo "Copying user ssh keys"
|
||||
for dir in /mnt/persist/state/home/*; do
|
||||
mkdir -p "$dir/ssh/.ssh"
|
||||
cp /hermes/secrets/$host/id* "$dir/ssh/.ssh"
|
||||
done
|
||||
|
||||
echo "Copying host ssh keys"
|
||||
mkdir -p /mnt/persist/state/home/
|
||||
cp /hermes/secrets/$host/ssh* /mnt/persist/state/etc/ssh/
|
||||
fi
|
||||
|
||||
if [ "$action" = "enter" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue