Re-enable reboots

This commit is contained in:
Henry Hiles 2025-11-27 11:12:27 -05:00
commit 2dcb4dd99c
No known key found for this signature in database
2 changed files with 13 additions and 9 deletions

View file

@ -1,10 +1,10 @@
{ {
# systemd.timers.reboot = { systemd.timers.reboot = {
# wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
# timerConfig = { timerConfig = {
# OnCalendar = "*-*-* 02:00:00"; OnCalendar = "*-*-* 02:00:00";
# Persistent = true; Persistent = true;
# Unit = "reboot.target"; Unit = "reboot.target";
# }; };
# }; };
} }

View file

@ -18,7 +18,11 @@
}; };
config = { 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 = services =
let let
subdomain = "matrix.${config.quad.matrix.domain}"; subdomain = "matrix.${config.quad.matrix.domain}";