1
Fork 0

Finalize calypso install!

This commit is contained in:
prescientmoon 2024-08-26 23:30:04 +02:00
parent b67cf3fde7
commit 2357c5d3d6
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
5 changed files with 26 additions and 12 deletions

View file

@ -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