I am trying to setup an early ssh access to my remote backup server at a (not very tech-inclined) friends house.
Because I want to minimize attack surfaces for his network and my server, I am using tailscale as the only way to connect to the server from afar.
I am now working on encrypting my full disk (except for boot) and was looking into options to unlock my disks after a reboot and was studying this guide on the wiki that enables ssh for initrd: Remote disk unlocking - NixOS Wiki
However, this will not work for me, because I cannot access the server unless the tailscale daemon is running and authenticated it to my tailnet.
Which settings do I need to get tailscale also up and running for initrd. Has anybody a recipe where they already setup something similar to this?
This assumes boot.initrd.systemd.enable = true; and assumes you’ve done something else to mount /var/lib/tailscale in the initrd, which should contain your tailscale state.
So far this has worked pretty much perfectly for me ever since I got it working. Never had any issues.