#!/usr/bin/env nix-shell #! nix-shell -i bash -p ssh-to-age ssh-to-age boxes EXTRA_FILES=$( mktemp -d ) LUKS_KEY=$( mktemp ) SSH_HOST_KEY="$EXTRA_FILES/etc/ssh/ssh_host_ed25519_key" cat < "$LUKS_KEY" echo echo echo cat <.yaml EOF cat <.yaml key_groups: - age: - *palo - $AGE_KEY EOF echo echo make sure you configure services.openssh.hostKeys | boxes -d shell cat < $LUKS_KEY EOF