tailscaled: start after headscale
This commit is contained in:
parent
e6bdc582d3
commit
c0b8720d2f
1 changed files with 64 additions and 60 deletions
|
@ -5,7 +5,8 @@ in
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.headscale ];
|
environment.systemPackages = [ pkgs.headscale ];
|
||||||
|
|
||||||
services.headscale = {
|
services = {
|
||||||
|
headscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
address = "127.0.0.1";
|
address = "127.0.0.1";
|
||||||
|
@ -39,7 +40,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresql = {
|
postgresql = {
|
||||||
ensureDatabases = [ "headscale" ];
|
ensureDatabases = [ "headscale" ];
|
||||||
|
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
|
@ -52,7 +53,7 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."${fqdn}" = {
|
nginx.virtualHosts."${fqdn}" = {
|
||||||
quic = true;
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
|
|
||||||
|
@ -73,4 +74,7 @@ in
|
||||||
root = "${pkgs.headscale-ui}/share";
|
root = "${pkgs.headscale-ui}/share";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.tailscaled.after = [ "headscale.service" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue