1
0
Fork 0

tailscaled: start after headscale

This commit is contained in:
Daniel Kempkens 2023-11-19 17:58:39 +01:00
parent e6bdc582d3
commit c0b8720d2f
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -5,7 +5,8 @@ in
{
environment.systemPackages = [ pkgs.headscale ];
services.headscale = {
services = {
headscale = {
enable = true;
address = "127.0.0.1";
@ -39,7 +40,7 @@ in
};
};
services.postgresql = {
postgresql = {
ensureDatabases = [ "headscale" ];
ensureUsers = [
@ -52,7 +53,7 @@ in
];
};
services.nginx.virtualHosts."${fqdn}" = {
nginx.virtualHosts."${fqdn}" = {
quic = true;
http3 = true;
@ -73,4 +74,7 @@ in
root = "${pkgs.headscale-ui}/share";
};
};
};
systemd.services.tailscaled.after = [ "headscale.service" ];
}