Re-enable reboots
This commit is contained in:
parent
31d1e11860
commit
2dcb4dd99c
2 changed files with 13 additions and 9 deletions
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
# systemd.timers.reboot = {
|
||||
# wantedBy = [ "timers.target" ];
|
||||
# timerConfig = {
|
||||
# OnCalendar = "*-*-* 02:00:00";
|
||||
# Persistent = true;
|
||||
# Unit = "reboot.target";
|
||||
# };
|
||||
# };
|
||||
systemd.timers.reboot = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "*-*-* 02:00:00";
|
||||
Persistent = true;
|
||||
Unit = "reboot.target";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,11 @@
|
|||
};
|
||||
|
||||
config = {
|
||||
systemd.services.continuwuity.serviceConfig.Restart = lib.mkForce "always";
|
||||
systemd.services.continuwuity.serviceConfig = {
|
||||
TimeoutStartSec = 30;
|
||||
Restart = lib.mkForce "always";
|
||||
ExecStartPost = "/bin/sh -c 'until ${lib.getExe pkgs.curl} -s -f https://matrix.federated.nexus/.well-known/matrix/client; do sleep 1; done'";
|
||||
};
|
||||
services =
|
||||
let
|
||||
subdomain = "matrix.${config.quad.matrix.domain}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue