Docs for LXC things.
cd lxc/
nix build ".#template"
Take the output of that, and import it into Proxmox.
Do a normal container setup, without IP setup.
Add the following to /etc/pve/lxc/ID.conf
for Tailscale to work:
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
A bare minimum setup, meaning a host with:
Get the age key for the host with:
nix-shell -p ssh-to-age --run 'ssh-keyscan 10.1.2.2 | ssh-to-age'
That might fail at first. If it does, ssh once into the container to trust the fingerprint and try again.
Might need two rebuilds.
And done!