feat(headscale): defer auth to device registration
When we start up headscale, it tries to connect to OIDC. If our OIDC
server is down, there were previously two options:
- We can fail to start the server altogether
- We can fallback to CLI auth and lose the ability to use OIDC until
headscale is restarted
Neither of these are what I want: I want us to start up anyway but not
allow registration until OIDC successfully connects
I've made a patch to do just that! I made it ontop of main, so I've also
had to upgrade headscale to allow use of this patch.
I had some troubles with nilla, which can't properly interpret the
headscale flake (missing rev/shortRev attributes) - therefore I've taken
the nix package definition from the headscale repo and updated it to use
the patch and the correct source manually
Refs: juanfont/headscale#1873
authored by
a.starrysky.fyi
and committed by