Server/headscale: never stop trying to restart
This commit is contained in:
parent
c46418c783
commit
1c7d4a513d
1 changed files with 8 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{lib, ...}: {
|
||||||
services.headscale = {
|
services.headscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -20,5 +20,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.rust-motd.settings.service_status.Headscale = "headscale";
|
programs.rust-motd.settings.service_status.Headscale = "headscale";
|
||||||
systemd.services.tailscaled.after = ["headscale.service"];
|
systemd = {
|
||||||
|
services.tailscaled.after = ["headscale.service"];
|
||||||
|
services.headscale = {
|
||||||
|
serviceConfig.RestartSec = lib.mkForce "120s";
|
||||||
|
unitConfig.StartLimitBurst = lib.mkForce "infinity";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue